Interface UserData
- All Superinterfaces:
Cloneable,net.anotheria.asg.data.DataObject,net.anotheria.util.sorter.IComparable
- All Known Implementing Classes:
UserDataDocument
public interface UserData
extends net.anotheria.asg.data.DataObject, net.anotheria.util.sorter.IComparable
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant property name for "id" for internal storage and queries.static final StringConstant property name for "roles" for internal storage and queries.static final StringConstant property name for "userId" for internal storage and queries. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRolesElement(String role) Adds a new element to the list.getRoles()Returns the value of the roles attribute.getRolesElement(int index) Returns the element at the position index in the list.intReturns the number of elements in the "roles" containerReturns the value of the userId attribute.voidremoveRolesElement(int index) Removes the element at position index from the list.voidSets the value of the roles attribute.voidSets the value of the userId attribute.voidswapRolesElement(int index1, int index2) Swaps elements at positions index1 and index2 in the list.Methods inherited from interface net.anotheria.asg.data.DataObject
clone, getDefinedName, getDefinedParentName, getFootprint, getId, getLastUpdateTimestamp, getObjectInfo, getPropertyValue, toXMLNodeMethods inherited from interface net.anotheria.util.sorter.IComparable
compareTo
-
Field Details
-
PROP_ID
Constant property name for "id" for internal storage and queries.- See Also:
-
PROP_USER_ID
Constant property name for "userId" for internal storage and queries.- See Also:
-
PROP_ROLES
Constant property name for "roles" for internal storage and queries.- See Also:
-
-
Method Details
-
getUserId
String getUserId()Returns the value of the userId attribute. -
setUserId
Sets the value of the userId attribute. -
getRoles
Returns the value of the roles attribute. -
setRoles
Sets the value of the roles attribute. -
getRolesSize
int getRolesSize()Returns the number of elements in the "roles" container -
addRolesElement
Adds a new element to the list. -
removeRolesElement
void removeRolesElement(int index) Removes the element at position index from the list. -
swapRolesElement
void swapRolesElement(int index1, int index2) Swaps elements at positions index1 and index2 in the list. -
getRolesElement
Returns the element at the position index in the list.
-