Class AbstractGroovyDsNode
- java.lang.Object
-
- de.uplanet.lucy.server.usermanager.groovy.AbstractGroovyDsNode
-
- Direct Known Subclasses:
GroovyDsContainerNode
,GroovyDsSetNode
@Scriptable public abstract class AbstractGroovyDsNode extends Object
Note: Do not declare variables of this type in scripts.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object p_obj)
Object
get(String p_strKey)
Get an attribute value of this org structure node.Object
getAt(String p_strKey)
abstract int
getClassId()
Get the class ID of this org structure node.abstract String
getDescription()
Get the description of this org structure node.String
getGuid()
Get the unique identifier of this org structure node.abstract String
getName()
Get the name of this org structure node.abstract GroovyDsContainerNode
getParent()
Get the parent container of this org structure node.abstract List<String>
getPath()
Get the path of this org structure node a a list of path elements.abstract String
getPathAsString()
Get the path of this org structure node.int
getPriority()
Get the priority of this org structure node.int
hashCode()
boolean
hasParent()
Check if this org structure node has a parent.abstract boolean
isContainer()
boolean
isContainerClass()
Check if the object class is CONTAINER.boolean
isDeleted()
Check if this org structure node is deletedboolean
isDistListClass()
Check if the object class is DISTLIST.boolean
isGroupClass()
Check if the object class is GROUP.boolean
isObjectClass()
Check if the object class is OBJECT.boolean
isOrganizationClass()
Check if the object class is ORGANIZATION.boolean
isOrgUnitClass()
Check if the object class is ORGUNIT.boolean
isRoleClass()
Check if the object class is ROLE.abstract boolean
isSet()
boolean
isSetClass()
Check if the object class is SET.void
save()
Save the node to the database.void
set(String p_strKey, Object p_value)
Set an attribute value of this org structure node.
-
-
-
Method Detail
-
getGuid
public String 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
public abstract String getName()
Get the name of this org structure node.- Returns:
- The name of this org structure node.
-
getPathAsString
public abstract String getPathAsString()
Get the path of this org structure node.- Returns:
- The path of this org structure node.
-
getPath
public abstract List<String> getPath()
Get the path of this org structure node a a list of path elements.- Returns:
- The path of this org structure node.
-
getDescription
public abstract String getDescription()
Get the description of this org structure node.- Returns:
- The description of this org structure node.
-
getParent
public abstract GroovyDsContainerNode getParent()
Get the parent container of this org structure node.- Returns:
- The parent container of this org structure node.
-
isContainer
public abstract boolean isContainer()
-
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
-
isSet
public abstract boolean isSet()
-
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
-
get
public Object get(String p_strKey)
Get an attribute value of this org structure node.- Parameters:
p_strKey
- The attribute name or GUID.- Returns:
- The value for the given attribute.
- Throws:
IllegalArgumentException
- If there is no attribute for the given key.
-
set
public void set(String p_strKey, Object p_value)
Set an attribute value of this org structure node.- Parameters:
p_strKey
- The attribute name or GUID.p_value
- The value to set.- Throws:
IllegalArgumentException
- If there is no attribute for the given key or the attribute can not be set.
-
save
public void save()
Save the node to the database.- Since:
- Intrexx 18.09.
-
-