public class JCRProjectMember extends DefaultAmetysObject<JCRProjectMemberFactory> implements ModifiableModelLessDataAwareAmetysObject
Modifier and Type | Class and Description |
---|---|
static class |
JCRProjectMember.MemberType
The type of the member
|
Modifier and Type | Field and Description |
---|---|
private static String |
METADATA_GROUP |
private static String |
METADATA_GROUP_DIRECTORY |
private static String |
METADATA_GROUP_ID |
private static String |
METADATA_ROLE |
private static String |
METADATA_TYPE |
private static String |
METADATA_USER |
PROTECTED_PROPERTIES
Constructor and Description |
---|
JCRProjectMember(Node node,
String parentPath,
JCRProjectMemberFactory factory)
Creates a
JCRProjectMember . |
Modifier and Type | Method and Description |
---|---|
ModifiableModelLessDataHolder |
getDataHolder()
Returns the
DataHolder of this AmetysObject . |
GroupIdentity |
getGroup()
Get the group identity of the project member
|
String |
getRole()
Get the role of this project member
|
String |
getType()
Get the type of the member.
|
UserIdentity |
getUser()
Get the user identity of the project member
|
void |
setGroup(GroupIdentity groupIdentity)
Set the group identity
|
void |
setRole(String role)
Set the role of this project member.
|
void |
setType(JCRProjectMember.MemberType type)
Set the type of the member.
|
void |
setUser(UserIdentity userIdentity)
Set the user identity
|
addAllowedGroups, addAllowedProfilesForAnonymous, addAllowedProfilesForAnyConnectedUser, addAllowedUsers, addDeniedGroups, addDeniedProfilesForAnonymous, addDeniedProfilesForAnyConnectedUser, addDeniedUsers, addLabel, checkpoint, copyNode, getAllLabels, getAllowedGroups, getAllowedProfilesForAnonymous, getAllowedProfilesForAnyConnectedUser, getAllowedProfilesForGroups, getAllowedProfilesForUser, getAllowedProfilesForUsers, getAllowedUsers, getAllRevisions, getBaseNode, getBaseVersion, getDeniedGroups, getDeniedProfilesForAnonymous, getDeniedProfilesForAnyConnectedUser, getDeniedProfilesForGroups, getDeniedProfilesForUser, getDeniedProfilesForUsers, getDeniedUsers, getLabels, getLabels, getNode, getRevision, getRevisionTimestamp, getRevisionTimestamp, getUnversionedMetadataHolder, getVersionHistory, removeAllowedGroups, removeAllowedGroups, removeAllowedProfilesForAnonymous, removeAllowedProfilesForAnyConnectedUser, removeAllowedUsers, removeAllowedUsers, removeDeniedGroups, removeDeniedGroups, removeDeniedProfilesForAnonymous, removeDeniedProfilesForAnyConnectedUser, removeDeniedUsers, removeDeniedUsers, removeLabel, restoreFromLabel, restoreFromNode, restoreFromRevision, switchToLabel, switchToRevision
_getFactory, _invalidateName, _invalidateParentPath, getId, getMetadataHolder, getName, getParent, getParentPath, getPath, needsSave, remove, rename, revertChanges, saveChanges
equals, hashCode, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getComposite, getComposite, getRepeater, getRepeater, removeValue, setValue, setValue
getType, getValue, getValue, getValueOfType, getValueOfType, hasValue, isMultiple
copyTo, getDataNames
equals, getId, getName, getParent, getParentPath, getPath, hashCode
toSAX, toSAX
dataToSAX, dataToSAX, dataToSAX, dataToSAX
getMetadataHolder
needsSave, rename, revertChanges, saveChanges
private static final String METADATA_USER
private static final String METADATA_GROUP
private static final String METADATA_GROUP_DIRECTORY
private static final String METADATA_GROUP_ID
private static final String METADATA_TYPE
private static final String METADATA_ROLE
public JCRProjectMember(Node node, String parentPath, JCRProjectMemberFactory factory)
JCRProjectMember
.node
- the node backing this AmetysObject
parentPath
- the parentPath in the Ametys hierarchyfactory
- the ProjectUserFactory which created the AmetysObjectpublic ModifiableModelLessDataHolder getDataHolder()
DataAwareAmetysObject
DataHolder
of this AmetysObject
.getDataHolder
in interface DataAwareAmetysObject
getDataHolder
in interface ModelLessDataAwareAmetysObject
getDataHolder
in interface ModifiableModelLessDataAwareAmetysObject
DataHolder
of this AmetysObject
public String getType()
public void setType(JCRProjectMember.MemberType type)
type
- The type of the memberpublic UserIdentity getUser()
public void setUser(UserIdentity userIdentity)
userIdentity
- The user identitypublic GroupIdentity getGroup()
public void setGroup(GroupIdentity groupIdentity)
groupIdentity
- The group identity