|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talos.model.Subject
public class Subject
This class represents a Subject. A Subject is an entity that can be granted permissions on secure objects and categories. It is identified by its name, so you can't have two subjects with the same name in a system. The proper way to work with subjects is through the SubjectContainer.
SubjectContainer| Constructor Summary | |
|---|---|
protected |
Subject()
Empty constructor used by Hibernate. |
|
Subject(String name)
Public constructor that receives a name. |
| Method Summary | |
|---|---|
int |
compareTo(Subject subject)
This comparator uses the attribute name, to compare strings, this method uses compareToIgnoreCase |
boolean |
equals(Object obj)
|
String |
getName()
Gets the name of the object |
int |
hashCode()
|
protected void |
setName(String name)
Sets the name of the subject. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Subject()
public Subject(String name)
name - the name for the subject| Method Detail |
|---|
public String getName()
NamedObject
getName in interface NamedObjectprotected void setName(String name)
name - the name of the subjectpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic int compareTo(Subject subject)
compareTo in interface Comparable<Subject>subject - subject to compare
|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||