Skip navigation links


oracle.iam.platform.authopss.vo
Class EntityPublication

java.lang.Object
  extended by oracle.iam.platform.authopss.vo.EntityPublication

All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AppInstancePublication, EntitlementPublication, RolePublication

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

This class represents a scope in which an entity is published. An entity can be published in more than one scope. Use EntityPublicationManager to collate all publication of an entity. You can create an in-memory instance of this class and pass it to EntityPublicationManager to persist it. The logged-in user at the time should have appropriate privileges to perform operation. Persisted publications are used internally to make authorization decisions.

See Also:
EntityPublicationService, AdminRoleMembership, Serialized Form

Nested Class Summary
static class EntityPublication.Attribute
           

 

Constructor Summary
EntityPublication()
          Default constructor.
EntityPublication(java.lang.String entityId, PolicyConstants.Resources entityType, java.lang.Long scopeId, boolean hierarchicalScope)
          Alternate constructor that takes the values of scopeId correctly as Long.
EntityPublication(java.lang.String entityId, PolicyConstants.Resources entityType, java.lang.String scopeId, boolean hierarchicalScope)
          Deprecated. - Use EntityPublication(String entityId, PolicyConstants.Resources entityType, Long scopeId ,boolean hierarchicalScope) instead

 

Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getEntityId()
          Convenience method to correctly resolve the entity-id.
 java.lang.Long getEntityIdAsLong()
          Returns the entity-id as Long.
 java.lang.Long getEntityPublicationId()
           
 java.lang.String getEntityType()
           
 PolicyConstants.Resources getEntityTypeAsEnum()
           
 java.lang.String getExtEntityId()
          For toplink mapping only.
 java.lang.String getRootScopeId()
           
 java.lang.Long getRootScopeIdAsLong()
          For toplink mapping only.
 java.lang.String getRootScopeName()
           
 java.lang.String getScopeId()
           
 java.lang.Long getScopeIdAsLong()
           
 java.lang.String getScopeName()
           
 java.lang.String getScopeType()
           
 int hashCode()
           
 boolean isHierarchicalScope()
           
 void setEntityId(java.lang.String entityId)
           
 void setEntityIdAsLong(java.lang.Long entityIdAsLong)
          The setter for the internal entity-id.
 void setEntityPublicationId(java.lang.Long entityPublicationId)
           
 void setEntityType(java.lang.String entityType)
           
 void setExtEntityId(java.lang.String extEntityId)
          For toplink mapping only.
 void setHierarchicalScope(boolean hierarchicalScope)
           
 void setRootScopeId(java.lang.String rootScopeId)
           
 void setRootScopeIdAsLong(java.lang.Long rootScopeIdAsLong)
          For toplink mapping only.
 void setRootScopeName(java.lang.String rootScopeName)
           
 void setScopeId(java.lang.String scopeId)
           
 void setScopeIdAsLong(java.lang.Long scopeIdAsLong)
           
 void setScopeName(java.lang.String scopeName)
           
 void setScopeType(java.lang.String scopeType)
           
 java.lang.String toString()
           

 

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

 

Constructor Detail

EntityPublication

public EntityPublication()
Default constructor. Required by eclipselink. For all cases parametrized constructor should be used.

EntityPublication

public EntityPublication(java.lang.String entityId,
                         PolicyConstants.Resources entityType,
                         java.lang.String scopeId,
                         boolean hierarchicalScope)
Deprecated. - Use EntityPublication(String entityId, PolicyConstants.Resources entityType, Long scopeId ,boolean hierarchicalScope) instead
Parameters:
entityId -
entityType -
scopeId -
hierarchicalScope -

EntityPublication

public EntityPublication(java.lang.String entityId,
                         PolicyConstants.Resources entityType,
                         java.lang.Long scopeId,
                         boolean hierarchicalScope)
Alternate constructor that takes the values of scopeId correctly as Long.
Parameters:
entityId -
entityType -
scopeId -
hierarchicalScope -

Method Detail

setEntityPublicationId

public void setEntityPublicationId(java.lang.Long entityPublicationId)

getEntityPublicationId

public java.lang.Long getEntityPublicationId()

setEntityId

public final void setEntityId(java.lang.String entityId)

getEntityId

public final java.lang.String getEntityId()
Convenience method to correctly resolve the entity-id.
Returns:

setEntityType

public final void setEntityType(java.lang.String entityType)

getEntityType

public final java.lang.String getEntityType()

getEntityTypeAsEnum

public final PolicyConstants.Resources getEntityTypeAsEnum()

setScopeId

public final void setScopeId(java.lang.String scopeId)

getScopeId

public final java.lang.String getScopeId()

setHierarchicalScope

public final void setHierarchicalScope(boolean hierarchicalScope)

isHierarchicalScope

public final boolean isHierarchicalScope()

getRootScopeId

public final java.lang.String getRootScopeId()
Returns:
the rootScopeId

setRootScopeId

public final void setRootScopeId(java.lang.String rootScopeId)
Parameters:
rootScopeId - the rootScopeId to set

getScopeName

public final java.lang.String getScopeName()
Returns:
the scopeName

setScopeName

public final void setScopeName(java.lang.String scopeName)
Parameters:
scopeName - the scopeName to set

getScopeType

public final java.lang.String getScopeType()
Returns:
the scopeType

setScopeType

public final void setScopeType(java.lang.String scopeType)
Parameters:
scopeType - the scopeType to set

getEntityIdAsLong

public java.lang.Long getEntityIdAsLong()
Returns the entity-id as Long. Populated with actual key for EE mode. For XE mode it will be LDAP guid for entity-type ROLE. This method is created for dependency satisfaction of toplink. this method will be used by toplink to establish relationship relation with ENTITY_ID column. For transparent lookup. Use getEntityId()
Returns:

setEntityIdAsLong

public void setEntityIdAsLong(java.lang.Long entityIdAsLong)
The setter for the internal entity-id. Used by toplink to populate the numeric id from the DB.The value of this attribute will be used for all internal DB mapping purposes. For EE mode it is the actual entity-id , for XE mode it is the generated hashkey for the LDAP GUID.

getScopeIdAsLong

public java.lang.Long getScopeIdAsLong()
Returns:
the scopeIdAsLong

setScopeIdAsLong

public void setScopeIdAsLong(java.lang.Long scopeIdAsLong)
Parameters:
scopeIdAsLong - the scopeIdAsLong to set

getRootScopeIdAsLong

public java.lang.Long getRootScopeIdAsLong()
For toplink mapping only. Use getEntityId to correctly get the values.
Returns:
the rootScopeIdAsLong

setRootScopeIdAsLong

public void setRootScopeIdAsLong(java.lang.Long rootScopeIdAsLong)
For toplink mapping only. Use setEntityId to correctly set the values.
Parameters:
rootScopeIdAsLong - the rootScopeIdAsLong to set

getExtEntityId

public final java.lang.String getExtEntityId()
For toplink mapping only. Use setEntityId to correctly set the values.
Returns:
the extEntityId

setExtEntityId

public final void setExtEntityId(java.lang.String extEntityId)
For toplink mapping only. Use getEntityId to correctly get the values.
Parameters:
extEntityId - the extEntityId to set

getRootScopeName

public final java.lang.String getRootScopeName()

setRootScopeName

public final void setRootScopeName(java.lang.String rootScopeName)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

Skip navigation links


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