com.sas.hls.organization
Class Organization

java.lang.Object
  extended by com.sas.hls.organization.OrganizationDescriptor
      extended by com.sas.hls.organization.Organization
All Implemented Interfaces:
Identifiable, AclContainerSecurable, AclSecurable, GroupContext, MembershipContext, PrivilegeContext, RoleContext, Serializable

public class Organization
extends OrganizationDescriptor

A data object that contains all attributes of an organization in the system.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sas.hls.organization.OrganizationDescriptor
OBJECT_TYPE
 
Constructor Summary
Organization()
          Deprecated. As of Java API 1.7. Please use Organization(String, String, String, long, List, String).
Organization(String name)
          Deprecated. As of Java API 1.7. Please use Organization(String, String, String, long, List, String).
Organization(String identifier, String path, String name, long revision, List<Attribute> attributes, String lead)
          Initializing constructor which sets the values of all variables.
 
Method Summary
 boolean equals(Object obj)
          Indicate whether some other object is "equal to" this one.
 String getLead()
          Returns the current lead of this Organization.
 int hashCode()
          Return a hash code value for the object.
 void setLead(String lead)
          Set the lead of this Organization.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class com.sas.hls.organization.OrganizationDescriptor
getAttributes, getIdentifier, getName, getObjectType, getPath, getRevision, setAttributes, setIdentifier, setName, setObjectType, setPath, setRevision
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Organization

@Deprecated
public Organization()
Deprecated. As of Java API 1.7. Please use Organization(String, String, String, long, List, String).

Zero-arg constructor


Organization

@Deprecated
public Organization(String name)
Deprecated. As of Java API 1.7. Please use Organization(String, String, String, long, List, String).

Constructor given the organization name.

Parameters:
name - the name of the organization

Organization

public Organization(String identifier,
                    String path,
                    String name,
                    long revision,
                    List<Attribute> attributes,
                    String lead)
Initializing constructor which sets the values of all variables.

It is not intended or recommended that the consumer of the API construct these objects. They should only be retrieved from service calls such as OrganizationService.getOrganizationByName(String).

Parameters:
identifier - The identifier of the Organization.
path - The full path to the Organization.
name - The name of the Organization.
revision - The internal revision number for this Organization.
attributes - The attributes associated with this Organization.
lead - The lead associated with this Organization.
Since:
1.7
Method Detail

getLead

public String getLead()
Returns the current lead of this Organization.

Returns:
The current lead of this Organization.

setLead

public void setLead(String lead)
Set the lead of this Organization.

Parameters:
lead - The new lead of this Organization.

hashCode

public int hashCode()
Return a hash code value for the object.

Overrides:
hashCode in class OrganizationDescriptor
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)
Indicate whether some other object is "equal to" this one.

Overrides:
equals in class OrganizationDescriptor
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Return a string representation of the object.

Overrides:
toString in class OrganizationDescriptor
See Also:
Object.toString()


Copyright (c) 2016, SAS Institute Inc., Cary, NC, USA