Package org.opencastproject.security.api
Class JaxbOrganization
java.lang.Object
org.opencastproject.security.api.JaxbOrganization
- All Implemented Interfaces:
Organization
- Direct Known Subclasses:
DefaultOrganization
An organization that is hosted on this Opencast instance.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn organization property.static classAn organization property. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringThe local admin role nameprotected StringThe local anonymous role nameprotected StringThe organizational identifierprotected StringThe friendly name of the organizationprotected List<JaxbOrganization.OrgProperty> Arbitrary string properties associated with this organizationprotected List<JaxbOrganization.OrgServer> Server and port mapping -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic JaxbOrganizationConstructs an organization from an organizationReturns the name for the local admin role.Returns the name for the local anonymous role.getId()getName()Returns the organizational propertiesReturns the server names and the corresponding ports that have been registered with this organization.inthashCode()toString()
-
Field Details
-
id
The organizational identifier -
name
The friendly name of the organization -
servers
Server and port mapping -
adminRole
The local admin role name -
anonymousRole
The local anonymous role name -
properties
Arbitrary string properties associated with this organization
-
-
Constructor Details
-
JaxbOrganization
public JaxbOrganization()No-arg constructor needed by JAXB -
JaxbOrganization
-
JaxbOrganization
public JaxbOrganization(String id, String name, Map<String, Integer> servers, String adminRole, String anonymousRole, Map<String, String> properties) Constructs an organization with its attributes.- Parameters:
id- the unique identifiername- the friendly nameservers- the hosts names and portsadminRole- name of the local admin roleanonymousRole- name of the local anonymous roleproperties- arbitrary properties defined for this organization, which might include branding, etc.
-
-
Method Details
-
fromOrganization
Constructs an organization from an organization- Parameters:
org- the organization
-
getId
- Specified by:
getIdin interfaceOrganization- Returns:
- the id
- See Also:
-
getName
- Specified by:
getNamein interfaceOrganization- Returns:
- the name
- See Also:
-
getServers
Description copied from interface:OrganizationReturns the server names and the corresponding ports that have been registered with this organization.- Specified by:
getServersin interfaceOrganization- Returns:
- the servers
- See Also:
-
getAdminRole
Description copied from interface:OrganizationReturns the name for the local admin role.- Specified by:
getAdminRolein interfaceOrganization- Returns:
- the admin role name
- See Also:
-
getAnonymousRole
Description copied from interface:OrganizationReturns the name for the local anonymous role.- Specified by:
getAnonymousRolein interfaceOrganization- Returns:
- the anonymous role name
- See Also:
-
getProperties
Description copied from interface:OrganizationReturns the organizational properties- Specified by:
getPropertiesin interfaceOrganization- Returns:
- the properties
- See Also:
-
toString
-
equals
-
hashCode
public int hashCode()
-