Package org.opencastproject.security.api
Class JaxbGroup
java.lang.Object
org.opencastproject.security.api.JaxbGroup
- All Implemented Interfaces:
Group
A simple user model.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Stringprotected Stringprotected Stringprotected JaxbOrganizationprotected StringFields inherited from interface org.opencastproject.security.api.Group
ROLE_PREFIX -
Constructor Summary
ConstructorsConstructorDescriptionNo-arg constructor needed by JAXBJaxbGroup(String groupId, JaxbOrganization organization, String name, String description) Constructs a group with the specified groupId, name, description and group role.JaxbGroup(String groupId, JaxbOrganization organization, String name, String description, Set<JaxbRole> roles) Constructs a group with the specified groupId, name, description, group role and roles.JaxbGroup(String groupId, JaxbOrganization organization, String name, String description, Set<JaxbRole> roles, Set<String> members) Constructs a group with the specified groupId, name, description, group role and roles. -
Method Summary
-
Field Details
-
groupId
-
organization
-
name
-
description
-
role
-
members
-
roles
-
-
Constructor Details
-
JaxbGroup
public JaxbGroup()No-arg constructor needed by JAXB -
JaxbGroup
Constructs a group with the specified groupId, name, description and group role.- Parameters:
groupId- the group idorganization- the organizationname- the namedescription- the description
-
JaxbGroup
public JaxbGroup(String groupId, JaxbOrganization organization, String name, String description, Set<JaxbRole> roles) Constructs a group with the specified groupId, name, description, group role and roles.- Parameters:
groupId- the group idorganization- the organizationname- the namedescription- the descriptionroles- the additional group roles
-
JaxbGroup
public JaxbGroup(String groupId, JaxbOrganization organization, String name, String description, Set<JaxbRole> roles, Set<String> members) Constructs a group with the specified groupId, name, description, group role and roles.- Parameters:
groupId- the group idorganization- the organizationname- the namedescription- the descriptionroles- the additional group rolesmembers- the group members
-
-
Method Details
-
fromGroup
-
getGroupId
Description copied from interface:GroupGets the group identifier.- Specified by:
getGroupIdin interfaceGroup- Returns:
- the group identifier
- See Also:
-
getName
Description copied from interface:GroupGets the group name. -
getOrganization
Description copied from interface:GroupGets the user's organization.- Specified by:
getOrganizationin interfaceGroup- Returns:
- the organization
- See Also:
-
getDescription
Description copied from interface:GroupGets the role description.- Specified by:
getDescriptionin interfaceGroup- Returns:
- the description
- See Also:
-
getRole
Description copied from interface:GroupGets the group role. -
getMembers
Description copied from interface:GroupGets the group members- Specified by:
getMembersin interfaceGroup- Returns:
- the group members
- See Also:
-
getRoles
Description copied from interface:GroupGets the group's roles. -
hashCode
public int hashCode() -
equals
-
toString
-