Interface UserData
-
- All Superinterfaces:
java.lang.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
Fields Modifier and Type Field Description static java.lang.StringPROP_IDConstant property name for "id" for internal storage and queries.static java.lang.StringPROP_ROLESConstant property name for "roles" for internal storage and queries.static java.lang.StringPROP_USER_IDConstant property name for "userId" for internal storage and queries.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddRolesElement(java.lang.String role)Adds a new element to the list.java.util.List<java.lang.String>getRoles()Returns the value of the roles attribute.java.lang.StringgetRolesElement(int index)Returns the element at the position index in the list.intgetRolesSize()Returns the number of elements in the "roles" containerjava.lang.StringgetUserId()Returns the value of the userId attribute.voidremoveRolesElement(int index)Removes the element at position index from the list.voidsetRoles(java.util.List<java.lang.String> value)Sets the value of the roles attribute.voidsetUserId(java.lang.String value)Sets the value of the userId attribute.voidswapRolesElement(int index1, int index2)Swaps elements at positions index1 and index2 in the list.
-
-
-
Field Detail
-
PROP_ID
static final java.lang.String PROP_ID
Constant property name for "id" for internal storage and queries.- See Also:
- Constant Field Values
-
PROP_USER_ID
static final java.lang.String PROP_USER_ID
Constant property name for "userId" for internal storage and queries.- See Also:
- Constant Field Values
-
PROP_ROLES
static final java.lang.String PROP_ROLES
Constant property name for "roles" for internal storage and queries.- See Also:
- Constant Field Values
-
-
Method Detail
-
getUserId
java.lang.String getUserId()
Returns the value of the userId attribute.
-
setUserId
void setUserId(java.lang.String value)
Sets the value of the userId attribute.
-
getRoles
java.util.List<java.lang.String> getRoles()
Returns the value of the roles attribute.
-
setRoles
void setRoles(java.util.List<java.lang.String> value)
Sets the value of the roles attribute.
-
getRolesSize
int getRolesSize()
Returns the number of elements in the "roles" container
-
addRolesElement
void addRolesElement(java.lang.String role)
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
java.lang.String getRolesElement(int index)
Returns the element at the position index in the list.
-
-