Class AbstractVelocityDsNode
java.lang.Object
de.uplanet.lucy.server.usermanager.velocity.AbstractVelocityDsNode
- Direct Known Subclasses:
VelocityDsContainerNode
,VelocityDsSetNode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the custom attribute with the given name.abstract int
Get the class ID of this org structure node.abstract String
Get the description of this org structure node.getGuid()
Get the unique identifier of this org structure node.abstract String
getName()
Get the name of this org structure node.abstract VelocityDsContainerNode
Get the parent container of this org structure node.getPath()
Get the path of this org structure node as a list of path elements.abstract String
Get the path of this org structure node.int
Get the priority of this org structure node.boolean
hasAttribute
(String p_strKey) Check if this node has a custom attribute with the given name.int
hashCode()
boolean
hasNotNullAttribute
(String p_strKey) Check if this node has a custom attribute with the given name, and if the value of this attribute is notnull
.boolean
Check if this org structure node has a parent.abstract boolean
boolean
Check if the object class is CONTAINER.boolean
Check if this org structure node is deletedboolean
Check if the object class is DISTLIST.boolean
Check if the object class is GROUP.boolean
Check if the object class is OBJECT.boolean
Check if the object class is ORGANIZATION.boolean
Check if the object class is ORGUNIT.boolean
Check if the object class is ROLE.abstract boolean
isSet()
boolean
Check if the object class is SET.
-
Method Details
-
getGuid
Get the unique identifier of this org structure node.- Returns:
- The unique identifier of the org structure node.
-
getPriority
public int getPriority()Get the priority of this org structure node.- Returns:
- The priority.
-
isDeleted
public boolean isDeleted()Check if this org structure node is deleted- Returns:
true
if this org structure node is deleted, orfalse
otherwise.
-
hasParent
public boolean hasParent()Check if this org structure node has a parent.- Returns:
true
if this org structure node has a parent, orfalse
otherwise.
-
getClassId
public abstract int getClassId()Get the class ID of this org structure node.- Returns:
- The class ID of this org structure node.
-
getName
Get the name of this org structure node.- Returns:
- The name of this org structure node.
-
getPathAsString
Get the path of this org structure node.- Returns:
- The path of this org structure node.
-
getPath
Get the path of this org structure node as a list of path elements.- Returns:
- The path of this org structure node.
-
getDescription
Get the description of this org structure node.- Returns:
- The description of this org structure node.
-
getParent
Get the parent container of this org structure node.- Returns:
- The parent container of this org structure node.
-
isContainer
public abstract boolean isContainer() -
isSet
public abstract boolean isSet() -
isObjectClass
public boolean isObjectClass()Check if the object class is OBJECT.- Returns:
true
if and only if
.getClassId()
==OBJECT_CLASSID
-
isContainerClass
public boolean isContainerClass()Check if the object class is CONTAINER.- Returns:
true
if and only if
.getClassId()
==CONTAINER_CLASSID
-
isSetClass
public boolean isSetClass()Check if the object class is SET.- Returns:
true
if and only if
.getClassId()
==SET_CLASSID
-
isRoleClass
public boolean isRoleClass()Check if the object class is ROLE.- Returns:
true
if and only if
.getClassId()
==ROLE_CLASSID
-
isGroupClass
public boolean isGroupClass()Check if the object class is GROUP.- Returns:
true
if and only if
.getClassId()
==GROUP_CLASSID
-
isDistListClass
public boolean isDistListClass()Check if the object class is DISTLIST.- Returns:
true
if and only if
.getClassId()
==DISTLIST_CLASSID
-
isOrgUnitClass
public boolean isOrgUnitClass()Check if the object class is ORGUNIT.- Returns:
true
if and only if
.getClassId()
==ORGUNIT_CLASSID
-
isOrganizationClass
public boolean isOrganizationClass()Check if the object class is ORGANIZATION.- Returns:
true
if and only if
.getClassId()
==ORGANIZATION_CLASSID
-
hasAttribute
Check if this node has a custom attribute with the given name.- Parameters:
p_strKey
- The name of the attribute.- Returns:
true
if this node has a custom attribute with the given name, orfalse
otherwise.
-
hasNotNullAttribute
Check if this node has a custom attribute with the given name, and if the value of this attribute is notnull
.- Parameters:
p_strKey
- The name of the attribute.- Returns:
true
if this node has a custom attribute with the given name, and its value is notnull
, orfalse
otherwise.
-
get
Get the custom attribute with the given name.- Parameters:
p_strKey
- The name of the attribute.- Returns:
- The value of the attribute.
- Throws:
IllegalArgumentException
- If the node does not have a custom attribute with the given name.
-
hashCode
public int hashCode() -
equals
-