@AbstractEntity public interface PortalEntity
In addition to extending the PortalEntity
interface, interfaces that represent types that form the persistence model must use the PersistProperty
annotation to denote persisted properties and PersistReference
to denote references to other PortalEntity
s in the model.
The AbstractEntity
annotation is used to indicate that a model type is abstract and cannot be created or queried directly using a PersistenceManager
.
PersistenceManager
Modifier and Type | Method and Description |
---|---|
java.util.Set<PersistenceSecurityAction> |
getAuthorizedActions()
Returns the set actions that the current user is authorized to perform on this object.
|
java.util.Date |
getCreated()
Gets the date/time the entity was created
|
java.lang.String |
getCreator()
Gets the creator of the entity
|
java.lang.String |
getDescription()
Gets the description
|
java.lang.String |
getDocumentRef()
Gets the document reference
|
java.lang.String |
getId()
Gets the ID of the entity
|
boolean |
getIsInitialized()
Gets the flag indicating whether this object has been fully initialized.
|
boolean |
getIsSecured()
Gets the flag indicating whether this object has been secured.
|
boolean |
getIsSeeded()
Whether the object is a seeded object
|
java.util.Date |
getModified()
Gets the date/time the entity was last modified
|
java.lang.String |
getModifier()
Gets the user that last modified the entity
|
java.lang.String |
getName()
Gets the name of the entity
|
java.lang.String |
getNamespace()
Gets the namespace of this entity.
|
PortalResource |
getPortal()
Gets the entity representing the portal that owns this entity, if any.
|
PortalEntity |
getRootSecurityEntity()
Obtains the entity that this entity ultimately inherits its security ID from.
|
PortalEntity |
getSecurityEntity()
Obtains the entity that this entity immediately inherits its security ID from.
|
java.lang.String |
getSecurityId()
Obtains the security ID being used by this entity.
|
java.lang.String |
getShortId()
Gets the short ID of the entity.
|
java.lang.String |
getType()
Gets the model interface type of this entity.
|
java.lang.String |
getVersionId()
Gets the version ID
|
boolean |
inheritsSecurity()
Returns true if this entity inherits its security ID from another entity.
|
void |
lock(LockMode lockMode)
Locks the portal entity
|
void |
setCreated(java.util.Date created)
Sets the date/time the entity was created
|
void |
setCreator(java.lang.String creator)
Sets the creator of the entity
|
void |
setDescription(java.lang.String description)
Sets the description
|
void |
setDocumentRef(java.lang.String documentRef)
Sets the document reference
|
void |
setIsInitialized(boolean initialized)
Sets the flag indicating whether this object has been fully initialized.
|
void |
setIsSeeded(boolean seeded)
Sets whether the object is a seeded object
|
void |
setName(java.lang.String name)
Sets the name of the entity
|
void |
setNamespace(java.lang.String namespace)
Sets the namespace of the entity
|
void |
setPortal(PortalResource portal)
Sets the owning portal entity.
|
void |
setSecurityEntity(PortalEntity pe)
Sets the entity from which this entity should inherit its security ID from.
|
void |
setSecurityId(java.lang.String securityId)
Explicitly sets the security ID for this entity.
|
void |
setVersionId(java.lang.String versionId)
Sets the version ID
|
java.lang.String getId()
java.lang.String getShortId()
java.lang.String getType()
java.lang.String getName()
void setName(java.lang.String name)
name
- the name of the entityjava.lang.String getNamespace()
void setNamespace(java.lang.String namespace)
namespace
- the namespacePortalEntity getRootSecurityEntity()
inheritsSecurity()
returns false.PortalEntity getSecurityEntity()
inheritsSecurity()
returns false.void setSecurityEntity(PortalEntity pe)
inheritsSecurity()
will return true.pe
- the PortalEntity from which this entity will inherit a security IDjava.lang.String getSecurityId()
inheritsSecurity()
returns true.void setSecurityId(java.lang.String securityId)
inheritsSecurity()
returns true) then that relationship will be removed when this method is invoked and inheritsSecurity()
will subsequently return false.securityId
- the security idboolean inheritsSecurity()
java.lang.String getDescription()
void setDescription(java.lang.String description)
description
- the descriptionjava.lang.String getVersionId()
void setVersionId(java.lang.String versionId)
versionId
- the version IDjava.lang.String getDocumentRef()
void setDocumentRef(java.lang.String documentRef)
documentRef
- the document referencejava.lang.String getCreator()
void setCreator(java.lang.String creator)
creator
- the creatorjava.util.Date getCreated()
void setCreated(java.util.Date created)
created
- the date/time the entity was createdjava.lang.String getModifier()
java.util.Date getModified()
boolean getIsInitialized()
void setIsInitialized(boolean initialized)
initialized
- new value of the initialized flagboolean getIsSeeded()
void setIsSeeded(boolean seeded)
seeded
- true if it is seeded, otherwise falsePortalResource getPortal()
void setPortal(PortalResource portal)
portal
- The owning portaljava.util.Set<PersistenceSecurityAction> getAuthorizedActions()
The set of actions will be a subset of those specified via the Authorization.actions()
element of the Authorization
annotation on the this object's class. If no Authorization
annotation is specified then the object is considered not to be secured and a full set of actions will be returned.
boolean getIsSecured()
void lock(LockMode lockMode)
lockMode
- the lock mode