com.sas.hls.organization
Class OrganizationDescriptor

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

public class OrganizationDescriptor
extends Object
implements GroupContext, MembershipContext, RoleContext, AclContainerSecurable

A light-weight representation of a SAS Drug Development Organization.

See Also:
Serialized Form

Field Summary
static String OBJECT_TYPE
          Represents the type name of an Organization object.
 
Constructor Summary
OrganizationDescriptor()
          Deprecated. As of Java API 1.7. Please use OrganizationDescriptor(String, String, String, long, List).
OrganizationDescriptor(String name)
          Deprecated. As of Java API 1.7. Please use OrganizationDescriptor(String, String, String, long, List).
OrganizationDescriptor(String identifier, String path, String name, long revision, List<Attribute> attributes)
          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.
 List<Attribute> getAttributes()
          Return the attributes associated with this Organization.
 String getIdentifier()
          Get the identifier of this object.
 String getName()
          Returns the name of this Organization.
 String getObjectType()
          Get the object type of this item.
 String getPath()
          Returns the full path of this Organization.
 long getRevision()
          Returns the internal revision number of this Organization.
 int hashCode()
          Return a hash code value for the object.
 void setAttributes(List<Attribute> attributes)
          Set the attributes associated with this Organization.
 void setIdentifier(String identifier)
          Deprecated. As of Java API 1.7. There is no replacement. Identifier is immutable.
 void setName(String name)
          Deprecated. As of Java API 1.7. There is no replacement. Name is immutable.
 void setObjectType(String objectType)
          Deprecated. As of Java API 1.7. There is no replacement. Object type is immutable.
 void setPath(String path)
          Deprecated. As of Java API 1.7. There is no replacement. Path is immutable.
 void setRevision(long revision)
          Deprecated. As of Java API 1.7. There is no replacement. Revision is immutable.
 String toString()
          Return a string representation of the object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

OBJECT_TYPE

public static final String OBJECT_TYPE
Represents the type name of an Organization object.

See Also:
Constant Field Values
Constructor Detail

OrganizationDescriptor

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

Zero-argument constructor


OrganizationDescriptor

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

OrganizationDescriptor constructor

Parameters:
name - The name of the new organizationDescriptor.

OrganizationDescriptor

public OrganizationDescriptor(String identifier,
                              String path,
                              String name,
                              long revision,
                              List<Attribute> attributes)
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.getOrganizationDescriptorByName(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.
Since:
1.7
Method Detail

getIdentifier

public String getIdentifier()
Description copied from interface: Identifiable
Get the identifier of this object.

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier of this object

getObjectType

public String getObjectType()
Description copied from interface: Identifiable
Get the object type of this item.

Specified by:
getObjectType in interface Identifiable
Returns:
the object type of this item.

getName

public String getName()
Returns the name of this Organization.

Returns:
The name of this Organization.

getPath

public String getPath()
Returns the full path of this Organization.

Returns:
The full path of this Organization.

getRevision

public long getRevision()
Returns the internal revision number of this Organization.

Returns:
The internal revision number of this Organization.

getAttributes

public List<Attribute> getAttributes()
Return the attributes associated with this Organization.

Returns:
The attributes associated with this Organization.

setAttributes

public void setAttributes(List<Attribute> attributes)
Set the attributes associated with this Organization.

Parameters:
attributes - The attributes to associate with this Organization.

setName

@Deprecated
public void setName(String name)
Deprecated. As of Java API 1.7. There is no replacement. Name is immutable.

Parameters:
name - the name to set

setIdentifier

@Deprecated
public void setIdentifier(String identifier)
Deprecated. As of Java API 1.7. There is no replacement. Identifier is immutable.

Parameters:
identifier - the identifier to set

setPath

@Deprecated
public void setPath(String path)
Deprecated. As of Java API 1.7. There is no replacement. Path is immutable.

Parameters:
path - the path to set

setObjectType

@Deprecated
public void setObjectType(String objectType)
Deprecated. As of Java API 1.7. There is no replacement. Object type is immutable.

Parameters:
objectType - the objectType to set

setRevision

@Deprecated
public void setRevision(long revision)
Deprecated. As of Java API 1.7. There is no replacement. Revision is immutable.

Set the internal revision number of this object.

Parameters:
revision - The new internal revision number of this object.

hashCode

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

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

equals

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

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

toString

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

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


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