|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.talos.model.SecureObject
public class SecureObject
This class represents a secure object. A secure object is the target or of an action for which a permission might be required.
| Constructor Summary | |
|---|---|
protected |
SecureObject()
Empty constructor needed by Hibernate |
|
SecureObject(String name)
Public constructor that receives a name. |
| Method Summary | |
|---|---|
protected void |
add(Category category)
Adds this object to a category. |
boolean |
containsAll(Collection<Category> list)
Checks if this object belongs to all categories in the list. |
SecureObject |
copy(String objectName)
Creates a new, transient SecureObject with the given name, belonging to all categories that this object belongs to. |
boolean |
equals(Object obj)
|
Set<Category> |
getCategories()
Gets the set of categories to which this object belongs. |
String |
getName()
Gets the name of the object |
int |
hashCode()
|
protected void |
remove(Category category)
Removes this object from a category. |
protected void |
setCategories(Set<Category> categories)
Sets the categories to which this object belongs. |
protected void |
setName(String name)
Sets the name of the SecureObject. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected SecureObject()
public SecureObject(String name)
name - the name for the secure object| Method Detail |
|---|
public String getName()
NamedObject
getName in interface NamedObjectprotected void setName(String name)
name - the name of the objectpublic Set<Category> getCategories()
protected void setCategories(Set<Category> categories)
categories - a set of categoriesprotected void add(Category category)
category - the category to add this object toCategory.add(SecureObject),
remove(Category)protected void remove(Category category)
category - the category to remove this object fromCategory.remove(SecureObject),
add(Category)public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Objectpublic boolean containsAll(Collection<Category> list)
list - a list of categories
add(Category),
remove(Category)public SecureObject copy(String objectName)
objectName - the name of the new object
|
Homepage | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||