This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!

Janis Kazakovs

Ranch Hand
+ Follow
since Aug 13, 2009
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Janis Kazakovs

Ok, let be it. I would say it is quite restrictive. The term open source appears to me in a bit different perspective now.

Thank you for your clarifications.
8 years ago
The header on the file I copy code from specifies the following:

* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
* and Distribution License("CDDL") (collectively, the "License"). You
* may not use this file except in compliance with the License.

So, if I go for GPLv2 and read its description I find the following paragraph:

9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.

Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.

May I conclude that using the later version of the GPL license, i.e. GPLv3, is still fine?
8 years ago
Thank you for your replies. From your answers I may conclude that I should be fine if I release my source under GPLv3 and if I include an original copyright header in the source file, which includes the copied code.

8 years ago
I am not sure about how to go along with the licenses. Let say I am writing a library and I want to make it freely available under either GPLv3 or Apache license (I do not really care). But, I reuse some code from another library released under GPLv2 license. By reusing I mean copy-pasting. However, I do not want to claim that the code I have copied was written by me. How should indicate that in my source I am reusing a code from another source. Is it enough to just copy a license header from the file the code was partially copied from and put that header my file?

8 years ago
What to do if your team lead says that the design patterns scks?

What to do if your team lead declares domain model entities as follows:

What to do if your team lead says that method precondition check is redundant and should be avoided and still writes on his web site that Efficient Java is his favorite book?

What to do if your team lead says that you should declare a long row of else if statements rather then implement a command pattern?

What to do if you know that your manager is going to talk to your team lead and will ask him for an evaluation of you as a developer, when you disagree with your team lead in all the above points?

Happy coding,
8 years ago
Your custom class becomes a JSF managed bean only in a container environment, which recognizes it as a JSF managed bean based on a configurations you made either by means of annotation or configuration in faces-config.xml file; the same applies to EJB. Otherwise, it is a simple POJO introduced by you in your design to handle a specific use case scenario, which specifies a contract a calling process should comply with in order to interact with your application. You should show it on your class diagram; how, otherwise, you will describe your application.

Lucky you! In my case it took more then 6 weeks and I had to constantly bombard them with emails.

Btw, in case of JSF, an action listener could be an alternative to servlet filter to perform authentication.
As long as I know the propagation of the security context should be supported by web and application servers. As soon as you have establish user's identity on presentation tier it should be propagated to the business tier. You can configure your servers to use transport layer security in order to meet confidentiality requirements.

If you do not use declarative security provided to you out of the box by the web container and implement authentication in, for example, servlet filter by mean of JAAS you will have to do some manual work, as for example implementing LoginModule and configuring JAAS Realm on your server. As soon as you have made all the necessary steps, on authentication of a request the JAAS will check user credentials and will establish user's identity represented by class. Since you implement the authentication manually, from your filter, you will have to store the Principal instance in the session and refer to it on every request.

Placing your authentication as well as autherization logic in the Servlet filter could be an option, in case you don't want to use a declarative security provided by a container. You get a looser coupling between a functionality defined by your application. In this scenario, however, you will have to implement the authentication logic yourself; you can also use any of the security frameworks available "out there", e.g. JAAS, Spring Security, you name it.

With regards to the security patterns I would advice you to have a look at book "Core Security Patterns", which describes, for example, the Authentication Enforces (if I am not mistaken) design pattern.

As a result, the possible scenario could be to define a servlet filter, which will delegate to your authentication enforcer, which, in turn, will either perform the authentication itself, by calling a DB for example, or will delegate to a security framework you choose to use, e.g. JAAS.

Hope it helps,
Congratulation Nithiraj! I am glad you've made it and that my assistance was of help to you. You probably feel relieved now.

It was a little bit of a surprise for me to see you taking time to say thanks Most of the time people simply silently absorb the help.

Good luck!
Thanks Tim for a comment. Frankly speaking, I am not sure myself how it's going to work. I am just looking around and searching for the available options.

I just know that I need more control over the graphics on a web page and trying to figure out what can I do about it.

You are probably right, mixing both JSF and SVG wouldn't be such a good idea. This could be a reason why there is no SVG render kit available.

I should, probably, look at this situation a little bit differently, by considering SVG context as a resource, which I can request whenever I need it.

Thanks again, you have triggered some ideas ;)


P.S.: With regards to the IE, I was thinking to try svgweb. Otherwise, I will, probably, look more seriously at Flex.
9 years ago
Does anyone know if there is a "cooked" SVG renderkit?

9 years ago
Ok, I looked in specs (after such a long time). There what it says:

If multiple stereotypes are applied to an element, it is possible to show this by enclosing each stereotype name within a pair of guillemets and listing them after each other.

This means that you should specify multiple stereotypes on one class as follows:
<< SessionFacade>>

However, specs also say that

A tool can choose whether it will display stereotypes or not.

So, it is normal that your tool does not display multiple stereotypes.

I found another example in specs that presents multiple stereotypes separated by comma, so your assumption was correct. As I understand, in your case you can use the following notation:
<<StatelessSessionBean, SessionFacade >>
which should be also correct.

Hello Yi,

I do not remember the specs, but I do not think that there is a restriction of a number of stereotypes you can use on a single class or component of your diagram.

As you know, we could use stereotype to show the stuffs like "Entity", "Stateless Session Bean", "Session Facade" and etc... My question is that how shall we show multiple stereotypes in Class Diagram, like a class is both a "Stateless Session Bean" and a Session Facade.

Just show both stereotypes.

Also, how do you show an EJB or JPA Entity in Class Diagram?

As it was already proposed by others - define your own stereotype and use it on your diagram.