Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.6.3)
E25378-06


oracle.bpel.services.identity.hierarchy
Class HierarchyPrincipal

java.lang.Object
  extended by oracle.bpel.services.identity.hierarchy.HierarchyPrincipal

All Implemented Interfaces:
java.io.Serializable

public class HierarchyPrincipal
extends java.lang.Object
implements java.io.Serializable

Represents a member of the hierarchy. A HierarchyPrincipal has the following parameters:

See Also:
Serialized Form

Constructor Summary
HierarchyPrincipal()
           
HierarchyPrincipal(HierarchyPrincipal p)
           
HierarchyPrincipal(java.lang.String id)
           

 

Method Summary
 boolean equals(java.lang.Object aThat)
          Overrides equlas method of Hierarchypricipal, it comapres the object equality and id value in the object.
static HierarchyPrincipal fromHcmHierarchy(oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal hcmPrincipal)
          Unmarshalls HierarchyPrincipal from oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal HierarchyPrincipal.
 long getAssignmentId()
          Returns the assignment id of this hierarchy memeber.
 java.lang.String getEffectiveDate()
          Returns the effective date of the hierarchy to traverse.
 java.lang.String getHierarchyType()
          Returns the hierarchy type of this hierarchy member.
 java.lang.String getId()
          Returns principal guid used to identify the hierarchy member.
 int getJobLevel()
          Returns the jobLevel of this hierarchy member.
 java.util.Map getPropertyBag()
          Returns a Map of additional properties required by the IHierarchyProvider implementation to identify the hierarchy member, and traverse the hierarchy.
 int hashCode()
          Returns HashCode of the id field.
 void setAssignmentId(long assignmentId)
          Sets the assignment id of this hierarchy memeber.
 void setEffectiveDate(java.lang.String effectiveDate)
          Sets the effective date of the hierarchy to traverse.
 void setHierarchyType(java.lang.String hierarchyType)
          Sets the hierarchy type of this hierarchy member.
 void setId(java.lang.String id)
          Sets principal guid used to identify the hierarchy member.
 void setJobLevel(int jobLevel)
          Sets the jobLevel of this hierarchy member.
 void setPropertyBag(java.util.Map propertyBag)
          Sets the Map of name-value pairs of additional properties required by the IHierarchyProvider.
static oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal toHcmHierarchy(HierarchyPrincipal principal)
          Marshalls HierarchyPrincipal obejct into a object that Fusion HCM uses to represent Hierarchy Principal.
static java.lang.String toPropertiesString(HierarchyPrincipal principal)
          Deprecated. Marshalls HierarchyPrincipal into a flat Properties formatted string.

 

Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

HierarchyPrincipal

public HierarchyPrincipal()

HierarchyPrincipal

public HierarchyPrincipal(java.lang.String id)

HierarchyPrincipal

public HierarchyPrincipal(HierarchyPrincipal p)

Method Detail

getId

public java.lang.String getId()
Returns principal guid used to identify the hierarchy member.
Returns:
String guid for hierarchy member.

getJobLevel

public int getJobLevel()
Returns the jobLevel of this hierarchy member. Only ever set by IHierarchyProvider implementation. Returns -1 if jobLevel is not implemented.
Returns:
int jobLevel

getEffectiveDate

public java.lang.String getEffectiveDate()
Returns the effective date of the hierarchy to traverse. May be null. This effectiveDate string is expected to have the format "yyyy-mm-dd". For instance, April 15th, 2008 is represented as "2008-04-15".
Returns:
String effectiveDate

getAssignmentId

public long getAssignmentId()
Returns the assignment id of this hierarchy memeber.
Returns:
int assignmentId

getHierarchyType

public java.lang.String getHierarchyType()
Returns the hierarchy type of this hierarchy member.
Returns:
String hierarchyType

getPropertyBag

public java.util.Map getPropertyBag()
Returns a Map of additional properties required by the IHierarchyProvider implementation to identify the hierarchy member, and traverse the hierarchy. The properites to be stored in the Map are specified by the IHierarchyProvider getPropertyNames() method.
Returns:
a Map of name-value pairs.

setId

public void setId(java.lang.String id)
Sets principal guid used to identify the hierarchy member.
Parameters:
id - String guid for hierarchy member.

setJobLevel

public void setJobLevel(int jobLevel)
Sets the jobLevel of this hierarchy member.
Parameters:
jobLevel -

setEffectiveDate

public void setEffectiveDate(java.lang.String effectiveDate)
Sets the effective date of the hierarchy to traverse. This effectiveDate string is expected to have the format "yyyy-mm-dd". For instance, April 15th, 2008 is represented as "2008-04-15".
Parameters:
effectiveDate -

setAssignmentId

public void setAssignmentId(long assignmentId)
Sets the assignment id of this hierarchy memeber.
Parameters:
assignmentId -

setHierarchyType

public void setHierarchyType(java.lang.String hierarchyType)
Sets the hierarchy type of this hierarchy member.
Parameters:
hierarchyType -

setPropertyBag

public void setPropertyBag(java.util.Map propertyBag)
Sets the Map of name-value pairs of additional properties required by the IHierarchyProvider.
Parameters:
propertyBag -

toPropertiesString

public static java.lang.String toPropertiesString(HierarchyPrincipal principal)
Deprecated. Marshalls HierarchyPrincipal into a flat Properties formatted string.
Parameters:
principal -
Returns:
String representation of the hierarchy pricipal.

equals

public boolean equals(java.lang.Object aThat)
Overrides equlas method of Hierarchypricipal, it comapres the object equality and id value in the object.
Overrides:
equals in class java.lang.Object
Parameters:
aThat - (Instance of HierarchyPrincipal to compare)
Returns:
boolean true if the this and input object and id are equal, otherwise false.

hashCode

public int hashCode()
Returns HashCode of the id field. If HierarchyPrincipal is not used as an hashmap key this method will be unused.
Overrides:
hashCode in class java.lang.Object
Returns:
hashcode

toHcmHierarchy

public static oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal toHcmHierarchy(HierarchyPrincipal principal)
Marshalls HierarchyPrincipal obejct into a object that Fusion HCM uses to represent Hierarchy Principal. Used for Oracle HCM Fusion Application.
Parameters:
principal -
Returns:
instance of oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal

fromHcmHierarchy

public static HierarchyPrincipal fromHcmHierarchy(oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal hcmPrincipal)
Unmarshalls HierarchyPrincipal from oracle.bpel.services.identity.hierarchy.providers.hcm.supervisory.HierarchyPrincipal HierarchyPrincipal.
Parameters:
hcmPrincipal - object
Returns:
HierarchyPrincipal

Skip navigation links

Oracle Fusion Middleware
Java API Reference for Oracle BPM Suite
11g Release 1 (11.1.1.6.3)
E25378-06


Copyright © 2009, 2011, Oracle and/or its affiliates. All rights reserved.