|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The RepresentationService contains the methods to create, query, and
delete Representations and associated files.
Supported API: false
Extendable: false
Method Summary | |
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. |
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. |
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(Representation representation)
Get the associated Thumbnail for the passed Representation. |
Representation |
makeDefaultRepresentation(Representable representable,
Representation representation)
Makes the passed Representation the default representation for the passed Representable. |
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. |
Method Detail |
public ApplicationData getThumbnail(Representable representable) throws WTException
representable
-
WTException
public ApplicationData getThumbnail(Representation representation) throws WTException
representation
-
WTException
public QueryResult getOutOfDateRepresentationContributors(Representation representation) throws WTException
representation
-
WTException
public QueryResult getRepresentations(Representable representable) throws WTException
representable
-
WTException
public WTKeyedMap getRepresentations(WTCollection representables) throws WTException
representables
- WTCollection of Representables
WTException
public Representable getRepresentable(Representation representation) throws WTException
representation
-
WTException
public WTValuedMap getRepresentable(WTCollection representations) throws WTException
representations
- WTCollection of Representations
WTException
public Representation storeRepresentation(Representation representation, Representable representable, String representationName, String representationDescription, RepresentationType representationType) throws WTException, WTPropertyVetoException, PropertyVetoException
representation
- representable
- representationName
- representationDescription
- representationType
-
WTException
WTPropertyVetoException
PropertyVetoException
public Void deleteRepresentation(Representation representation) throws WTException
representation
-
WTException
public Void deleteRepresentation(Representation representation, boolean noDefaultsOK) throws WTException
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
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
representable
-
WTException
public WTValuedMap getDefaultRepresentation(WTCollection representables) throws WTException
representables
- WTCollection of Representables
WTException
public Representation makeDefaultRepresentation(Representable representable, Representation representation) throws WTException, PropertyVetoException
representable
- representation
-
WTException
PropertyVetoException
public void emitReadyToPublishEvent(Persistable persistable) throws WTException
persistable
-
WTException
public void emitReadyToPublishEvent(Vector objects, ConfigSpec configSpec) throws WTException
objects
- configSpec
-
WTException
public ApplicationData get3DThumbnail(Representable representable) throws WTException
representable
-
WTException
public ApplicationData get3DThumbnail(Representation representation) throws WTException
representation
-
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |