public interface ManagedPortalObject<B extends PropertyBean> extends PortalObject<B>
Modifier and Type | Interface and Description |
---|---|
static interface |
ManagedPortalObject.ValidateOnCreate
Provides the JavaBean validation group that is used to indicate that a validation constraint should be applied during validation of a
PropertyBean used to create a ManagedPortalObject . |
static interface |
ManagedPortalObject.ValidateOnUpdate
Provides the JavaBean validation group that is used to indicate that a validation constraint should be applied during validation of a
PropertyBean used to update a ManagedPortalObject . |
Modifier and Type | Method and Description |
---|---|
<T extends ManagedPortalObject> |
copy(java.lang.String targetName)
Make a copy of this portal object, with the supplied name.
|
<T extends ManagedPortalObject> |
copy(java.lang.String targetName, Portal targetPortal)
Make a copy of this portal object, with the supplied name.
|
void |
delete()
Permanently delete this portal object.
|
void |
expandProperties(B bean, java.lang.String[] expandParams, java.lang.String[] fieldParams)
Expands REST specific fields in a property bean representing the current state of properties on this portal object.
|
java.util.Set<PortalSecurityAction> |
getAuthorizedActions()
Returns a Set of actions that the current user is authorized to perform on this object.
|
java.util.List<ManagedPortalObject> |
getDependentPortalObjects()
Return a list of portal objects that this portal object requires in order to function correctly.
|
<T extends ManagedPortalObject> |
getHolder()
Returns a
Serializable holder object for the current ManagedPortalObject instance. |
Portal<?> |
getPortal()
Get the portal that this portal object belongs to, if any.
|
java.lang.String |
getTypeName()
Obtains the fully qualified name of the Portal API type that the object implements.
|
boolean |
isCurrent(B bean)
Determine whether the supplied bean can be applied to this portal object without triggering a version conflict.
|
java.util.Set<javax.validation.ConstraintViolation<B>> |
isValid(B bean)
Determines if the
PropertyBean is valid with respect to this ManagedPortalObject . |
void |
setPortal(Portal portal)
Set the portal that this portal object belongs to, or clear it.
|
void |
setProperties(B bean)
Update the properties on this portal object.
|
getId, getProperties, getProperties
void setProperties(B bean) throws oracle.webcenter.portal.PortalOptimisticLockException
PortalObject.getProperties()
on the newly updated ManagedPortalObject
.bean
- the PropertyBean instance representing the new property set to apply to this object.VersionConflictException
- if the bean's currentVersionId doesn't match this object's current version.ValidationException
- if the bean's validation constraints are violated.oracle.webcenter.portal.PortalAuthorizationException
- if the object is secured and the current user does not have permission to update itoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.void expandProperties(B bean, java.lang.String[] expandParams, java.lang.String[] fieldParams)
bean
- the Bean to be expanded/populatedexpandParams
- list of parameters to expand. include "all" for all.fieldParams
- list of fields to display/hide or load [not implemented yet]boolean isCurrent(B bean)
java.util.Set<javax.validation.ConstraintViolation<B>> isValid(B bean)
PropertyBean
is valid with respect to this ManagedPortalObject
. Validity is determined be evaluating the javax.validation.ConstraintValidator
that are specified via annotations on the PropertyBean
.bean
- the PropertyBean to validatedvoid delete() throws oracle.webcenter.portal.PortalOptimisticLockException
oracle.webcenter.portal.PortalAuthorizationException
- if the object is secured and the current user does not have permission to delete itoracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.<T extends ManagedPortalObject> T copy(java.lang.String targetName) throws DuplicateNameException, oracle.webcenter.portal.PortalOptimisticLockException
targetName
- Name for the new portal object.oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.DuplicateNameException
<T extends ManagedPortalObject> T copy(java.lang.String targetName, Portal targetPortal) throws DuplicateNameException, oracle.webcenter.portal.PortalOptimisticLockException
targetName
- Name for the new portal object.oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.DuplicateNameException
Portal<?> getPortal()
void setPortal(Portal portal) throws oracle.webcenter.portal.PortalOptimisticLockException
portal
- The portal that this object belongs to, or null to clear.oracle.webcenter.portal.PortalOptimisticLockException
- another transaction has updated objects in the current active transaction.java.util.List<ManagedPortalObject> getDependentPortalObjects()
java.util.Set<PortalSecurityAction> getAuthorizedActions()
java.lang.String getTypeName()
<T extends ManagedPortalObject> ManagedPortalObjectHolder<T> getHolder()
Serializable
holder object for the current ManagedPortalObject
instance.ManagedPortalObjectHolder