|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.representation.StandardRepresentationService
Use the newStandardRepresentationService
static factory
method(s), not the StandardRepresentationService
constructor,
to construct instances of this class. Instances must be constructed
using the static factory(s), in order to ensure proper initialization
of the instance.
Supported API: false
Extendable: false
Nested Class Summary | |
(package private) class |
StandardRepresentationService.RepresentationEventListener
|
Field Summary | |
private static String |
CLASSNAME
|
private KeyedEventListener |
listener
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardRepresentationService()
|
Method Summary | |
Representable |
copyThumbnail(Representable representable,
Representation representation)
Copies the thumbnail content item in the passed Representation, if any, to the passed Representable. |
Void |
deleteRepresentation(Representation representation)
Deletes the passed Representation, unless it is the default representation for the associated Representable. |
Void |
deleteRepresentation(Representation representation,
boolean noDefaultsOK)
If the noDefaultsOK argument is true, unconditionally deletes the passed Representation. |
Void |
deleteRepresentation(WTSet representations,
boolean noDefaultsOK)
If the noDefaultsOK argument is true, unconditionally deletes the passed Representations. |
protected void |
dispatchVetoableEvent(String eventType,
Persistable target)
Supported API: false |
void |
emitReadyToPublishEvent(Persistable persistable)
Supported API: false |
void |
emitReadyToPublishEvent(Vector objects,
ConfigSpec configSpec)
Supported API: false |
ApplicationData |
get3DThumbnail(Representable representable)
Get the associated Thumbnail for the passed Representable. |
ApplicationData |
get3DThumbnail(Representation representation)
Get the associated Thumbnail for the passed Representation. |
String |
getConceptualClassname()
Deprecated. |
Representation |
getDefaultRepresentation(Representable representable)
Get the default Representation for the passed Representable. |
WTValuedMap |
getDefaultRepresentation(WTCollection representables)
Gets the default Representations for the passed Representables. |
QueryResult |
getOutOfDateRepresentationContributors(Representation representation)
Return all the associated RepresentationContributors that are responsible for making the Representation out of date. |
Representable |
getRepresentable(Representation representation)
Get the Representable for the passed Representation Supported API: false |
WTValuedMap |
getRepresentable(WTCollection representations)
Gets the Representables for the passed Representations Supported API: false |
QueryResult |
getRepresentations(Representable representable)
Return all the associated Representations for the associated Representable Supported API: false |
WTKeyedMap |
getRepresentations(WTCollection representables)
Return all the associated Representations for the passed Representables. |
ApplicationData |
getThumbnail(Representable representable)
Get the associated Thumbnail for the passed Representable. |
ApplicationData |
getThumbnail(Representable representable,
ContentRoleType roleType)
|
ApplicationData |
getThumbnail(Representation representation)
Get the associated Thumbnail for the passed Representation. |
ApplicationData |
getThumbnail(Representation representation,
ContentRoleType roleType)
|
Representation |
makeDefaultRepresentation(Representable representable,
Representation representation)
Makes the passed Representation the default representation for the passed Representable. |
static StandardRepresentationService |
newStandardRepresentationService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
private void |
postMakeUnrestorable(Representable representable)
|
protected void |
processContentCopyForward(WTKeyedMap map)
|
protected void |
processPostChangeDomainEvent(WTCollection target)
|
protected void |
processPreDeleteEvent(WTCollection target)
|
void |
registerEvents(ManagerService managerService)
Registers Representation service events with the service manager. |
ApplicationData |
store3DThumbnail(Representation representation,
ApplicationData thumbnail,
InputStream is)
Store the thumbnail for the passed Representation. |
Representation |
storeRepresentation(Representation representation,
Representable representable,
String representationName,
String representationDescription,
RepresentationType representationType)
Sets the representation attributes of the passed Representation and stores it in the database without any content. |
ApplicationData |
storeThumbnail(Representation representation,
ApplicationData thumbnail,
InputStream is)
Store the thumbnail for the passed Representation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private KeyedEventListener listener
private static boolean VERBOSE
Constructor Detail |
public StandardRepresentationService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected void dispatchVetoableEvent(String eventType, Persistable target) throws WTException
eventType
- target
-
WTException
public void registerEvents(ManagerService managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
managerService
- public static StandardRepresentationService newStandardRepresentationService() throws WTException
WTException
public ApplicationData getThumbnail(Representable representable) throws WTException
getThumbnail
in interface RepresentationService
representable
-
WTException
public ApplicationData getThumbnail(Representation representation) throws WTException
getThumbnail
in interface RepresentationService
representation
-
WTException
public QueryResult getOutOfDateRepresentationContributors(Representation representation) throws WTException
getOutOfDateRepresentationContributors
in interface RepresentationService
representation
-
WTException
public QueryResult getRepresentations(Representable representable) throws WTException
getRepresentations
in interface RepresentationService
representable
-
WTException
public WTKeyedMap getRepresentations(WTCollection representables) throws WTException
getRepresentations
in interface RepresentationService
representables
- WTCollection of Representables
WTException
public Representable getRepresentable(Representation representation) throws WTException
getRepresentable
in interface RepresentationService
representation
-
WTException
public WTValuedMap getRepresentable(WTCollection representations) throws WTException
getRepresentable
in interface RepresentationService
representations
- WTCollection of Representations
WTException
public Representation storeRepresentation(Representation representation, Representable representable, String representationName, String representationDescription, RepresentationType representationType) throws WTException, WTPropertyVetoException, PropertyVetoException
storeRepresentation
in interface RepresentationService
representation
- representable
- representationName
- representationDescription
- representationType
-
WTException
WTPropertyVetoException
PropertyVetoException
public Void deleteRepresentation(Representation representation) throws WTException
deleteRepresentation
in interface RepresentationService
representation
-
WTException
public Void deleteRepresentation(Representation representation, boolean noDefaultsOK) throws WTException
deleteRepresentation
in interface RepresentationService
representation
- noDefaultsOK
- Modifies method behavior if passed Representation is a default Representation. Set to true if it OK for the associated Representable to have Representations without one being designated the default. In this case, the passed Representation will be unconditionally deleted even if it a default Representation. Otherwise, the passed Representation will only be deleted if it is not a default Representation or is the only Representation associated with the Representable.
WTException
public Void deleteRepresentation(WTSet representations, boolean noDefaultsOK) throws WTException
deleteRepresentation
in interface RepresentationService
representations
- WTSet of RepresentationsnoDefaultsOK
- Modifies method behavior if a passed Representation is a default Representation. Set to true if it is OK for the associated Representable to have Representations without one being designated as the default. In this case, the passed Representation will be unconditionally deleted even if it is a default Representation. Otherwise, a Representation will only be deleted if it is not a default Representation or it is the only Representation associated with the Representable.
WTException
public Representation getDefaultRepresentation(Representable representable) throws WTException
getDefaultRepresentation
in interface RepresentationService
representable
-
WTException
public WTValuedMap getDefaultRepresentation(WTCollection representables) throws WTException
getDefaultRepresentation
in interface RepresentationService
representables
- WTCollection of Representables
WTException
public Representation makeDefaultRepresentation(Representable representable, Representation representation) throws WTException, PropertyVetoException
makeDefaultRepresentation
in interface RepresentationService
representable
- representation
-
WTException
PropertyVetoException
public void emitReadyToPublishEvent(Persistable persistable) throws WTException
emitReadyToPublishEvent
in interface RepresentationService
persistable
-
WTException
public void emitReadyToPublishEvent(Vector objects, ConfigSpec configSpec) throws WTException
emitReadyToPublishEvent
in interface RepresentationService
objects
- configSpec
-
WTException
public ApplicationData get3DThumbnail(Representable representable) throws WTException
get3DThumbnail
in interface RepresentationService
representable
-
WTException
public ApplicationData get3DThumbnail(Representation representation) throws WTException
get3DThumbnail
in interface RepresentationService
representation
-
WTException
public ApplicationData storeThumbnail(Representation representation, ApplicationData thumbnail, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
storeThumbnail
in interface RepresentationServiceSvr
representation
- thumbnail
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
public Representable copyThumbnail(Representable representable, Representation representation) throws WTException, PropertyVetoException
copyThumbnail
in interface RepresentationServiceSvr
representable
- representation
-
WTException
PropertyVetoException
public ApplicationData store3DThumbnail(Representation representation, ApplicationData thumbnail, InputStream is) throws WTException, PropertyVetoException, IOException, FileNotFoundException
store3DThumbnail
in interface RepresentationServiceSvr
representation
- thumbnail
- is
-
WTException
PropertyVetoException
IOException
FileNotFoundException
protected void processContentCopyForward(WTKeyedMap map) throws WTException, PropertyVetoException
WTException
PropertyVetoException
protected void processPostChangeDomainEvent(WTCollection target) throws WTException
WTException
protected void processPreDeleteEvent(WTCollection target) throws WTException, PropertyVetoException
WTException
PropertyVetoException
public ApplicationData getThumbnail(Representation representation, ContentRoleType roleType) throws WTException
WTException
public ApplicationData getThumbnail(Representable representable, ContentRoleType roleType) throws WTException
WTException
private void postMakeUnrestorable(Representable representable) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |