T - the PortalObject type held by this holder.public interface PortalObjectHolder<T extends PortalObject>
extends java.io.Serializable
Serializable object which holds a PortalObject.
PortalObject implementations are not
generally Serializable. This means that references to them cannot be
held on managed beans which are session scoped or page flow / conversation
scoped. The holder class provides a convenient way of holding a reference t
a PortalObject on such managed beans.
The holder would normall by obtained by calling
oracle.webcenter.portal.api.PortalObject#getHolder on
the instance of PortalObject that you wish to hold.
| Modifier and Type | Method and Description |
|---|---|
T |
get()
Returns the held
PortalObject. |
T get() throws PersistenceResourceNotFoundException
PortalObject.
The instance returned will not necessarily be the same instance of
of PortalObject but it will be an instance representing the same
underlying persistence object.PortalObject.PersistenceResourceNotFoundException - if the underlying persistence
resource could no longer be found.