public class JaxbOrganization extends Object implements Organization
| Modifier and Type | Class and Description |
|---|---|
static class |
JaxbOrganization.OrgProperty
An organization property.
|
static class |
JaxbOrganization.OrgServer
An organization property.
|
| Modifier and Type | Field and Description |
|---|---|
protected String |
adminRole
The local admin role name
|
protected String |
anonymousRole
The local anonymous role name
|
protected String |
id
The organizational identifier
|
protected String |
name
The friendly name of the organization
|
protected List<JaxbOrganization.OrgProperty> |
properties
Arbitrary string properties associated with this organization
|
protected List<JaxbOrganization.OrgServer> |
servers
Server and port mapping
|
| Constructor and Description |
|---|
JaxbOrganization()
No-arg constructor needed by JAXB
|
JaxbOrganization(String orgId) |
JaxbOrganization(String id,
String name,
Map<String,Integer> servers,
String adminRole,
String anonymousRole,
Map<String,String> properties)
Constructs an organization with its attributes.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
static JaxbOrganization |
fromOrganization(Organization org)
Constructs an organization from an organization
|
String |
getAdminRole()
Returns the name for the local admin role.
|
String |
getAnonymousRole()
Returns the name for the local anonymous role.
|
String |
getId() |
String |
getName() |
Map<String,String> |
getProperties()
Returns the organizational properties
|
Map<String,Integer> |
getServers()
Returns the server names and the corresponding ports that have been registered with this organization.
|
int |
hashCode() |
String |
toString() |
protected String id
protected String name
protected List<JaxbOrganization.OrgServer> servers
protected String adminRole
protected String anonymousRole
protected List<JaxbOrganization.OrgProperty> properties
public JaxbOrganization()
public JaxbOrganization(String orgId)
public JaxbOrganization(String id, String name, Map<String,Integer> servers, String adminRole, String anonymousRole, Map<String,String> properties)
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.public static JaxbOrganization fromOrganization(Organization org)
org - the organizationpublic String getId()
getId in interface OrganizationOrganization.getId()public String getName()
getName in interface OrganizationOrganization.getName()public Map<String,Integer> getServers()
OrganizationgetServers in interface OrganizationOrganization.getServers()public String getAdminRole()
OrganizationgetAdminRole in interface OrganizationOrganization.getId()public String getAnonymousRole()
OrganizationgetAnonymousRole in interface OrganizationOrganization.getId()public Map<String,String> getProperties()
OrganizationgetProperties in interface OrganizationOrganization.getProperties()public String toString()
toString in class ObjectObject.toString()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class ObjectObject.hashCode()Copyright © 2009–2020 Opencast Project. All rights reserved.