|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.viewmarkup.StandardViewMarkUpService
Contains methods for creating and manipulating DerivedImages and their associated MarkUps.
Use the newStandardViewMarkUpService
static factory method(s),
not the StandardViewMarkUpService
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 |
StandardViewMarkUpService.ViewMarkUpEventListener
|
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 | |
StandardViewMarkUpService()
|
Method Summary | |
Void |
deleteDerivedImage(DerivedImage derivedImage)
Deletes the passed DerivedImage, unless it is the default representation for the associated Representable. |
Void |
deleteDerivedImage(DerivedImage derivedImage,
boolean noDefaultsOK)
If the noDefaultsOK argument is true, unconditionally deletes the passed Representation. |
Void |
deleteDerivedImage(WTSet derivedImages,
boolean noDefaultsOK)
If the noDefaultsOK argument is true, unconditionally deletes the passed DerivedImages. |
Void |
deleteMarkUp(MarkUp markUp)
Remove the passed MarkUp for the passed Markable. |
Void |
deleteMarkUp(WTSet markUps)
Deletes the passed MarkUps Supported API: false |
QueryResult |
findDuplicateDerivedImages(DerivedImage image)
Finds other DerivedImages for the associated Representable with the same name and representationType as the passed DerviedImage. |
protected QueryResult |
findDuplicateDerivedImagesInternal(DerivedImage image,
Representable representable)
|
String |
getConceptualClassname()
Deprecated. |
ConfigSpec |
getDerivedFromConfigSpec(DerivedImage derivedImage)
Gets the WTObject playing the role of derivedFromConfigSpec for the passed DerivedImage. |
QueryResult |
getMarkUps(Viewable viewable)
Get all the associated MarkUps of a Viewable Supported API: false |
WTKeyedMap |
getMarkUps(WTCollection viewables)
Get all the MarkUps associated to a collection of Viewables. |
PublishingProhibition |
getPublishingProhibition(Representable representable)
Gets the single most restrictive PublishingProhibition for
a Representable; if null is returned, then the Representable is publishable. |
WTValuedMap |
getPublishingProhibition(WTCollection representables)
Gets the single most restrictive PublishingProhibition for
each Representable; if a Representable is not returned as a key in
the WTValuedMap, then that Representable is publishable
Supported API: false |
ConfigSpec |
getRepresentableConfigSpec(DerivedImage derivedImage)
Gets the WTObject playing the role of representableConfigSpec for the passed DerivedImage. |
Viewable |
getViewable(MarkUp markUp)
Get the Viewable for the passed MarkUp Supported API: false |
WTValuedMap |
getViewable(WTCollection markUps)
Gets the associated Viewables for the passed MarkUps. |
void |
lockMarkUp(MarkUp markUp)
Lock the passed MarkUp for the current WTPrincipal. |
static StandardViewMarkUpService |
newStandardViewMarkUpService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
private void |
postMakeUnrestorable(Viewable viewable)
|
DerivedImage |
postStoreDerivedImage(DerivedImage derivedImage,
Boolean defaultRepresentation)
This method should be called after a DerivedImage has been persisted with storeDerivedImage and after its contents have been uploaded. |
protected void |
processCleanupLinkEvent(Persistable target,
Persistable plink)
|
protected void |
processPostChangeDomainEvent(WTCollection target)
|
ConfigSpec |
setDerivedFromConfigSpec(ConfigSpec configSpec,
DerivedImage derivedImage)
Copies the passed ConfigSpec and stores it as the object playing the role of derivedFromonfigSpec for the passed DerivedImage. |
protected ConfigSpec |
setDerivedFromConfigSpecInternal(ConfigSpec configSpec,
DerivedImage derivedImage,
boolean check)
|
ConfigSpec |
setRepresentableConfigSpec(ConfigSpec configSpec,
DerivedImage derivedImage)
Copies the passed ConfigSpec and stores it as the object playing the role of representableConfigSpec for the passed DerivedImage. |
protected ConfigSpec |
setRepresentableConfigSpecInternal(ConfigSpec configSpec,
DerivedImage derivedImage,
boolean check)
|
DerivedImage |
storeDerivedImage(Representable representable,
String imageName,
String imageDescription,
String imageAdditionalInfo,
RepresentationType imageType,
DerivationType derivationType,
ConfigSpec representableConfigSpec,
ConfigSpec derivedFromConfigSpec,
RepresentationContributor derivedFrom)
Store a DerivedImage in the database without any content.. |
DerivedImage |
storeDerivedImage(Representable representable,
String imageName,
String imageDescription,
String imageAdditionalInfo,
RepresentationType imageType,
DerivationType derivationType,
ConfigSpec representableConfigSpec,
ConfigSpec derivedFromConfigSpec,
RepresentationContributor derivedFrom,
String CADFormName,
String CADPartName)
Store a DerivedImage in the database without any content.. |
MarkUp |
storeMarkUp(Viewable viewable,
MarkUp markUp)
Store a MarkUp for the passed Viewable. |
void |
unLockMarkUp(MarkUp markUp)
Remove the passed MarkUp for the passed Markable. |
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 StandardViewMarkUpService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardViewMarkUpService newStandardViewMarkUpService() throws WTException
WTException
public MarkUp storeMarkUp(Viewable viewable, MarkUp markUp) throws WTException
storeMarkUp
in interface ViewMarkUpService
viewable
- markUp
-
WTException
public QueryResult getMarkUps(Viewable viewable) throws WTException
getMarkUps
in interface ViewMarkUpService
viewable
-
WTException
public WTKeyedMap getMarkUps(WTCollection viewables) throws WTException
getMarkUps
in interface ViewMarkUpService
viewables
- WTCollection of Viewables
WTException
public Viewable getViewable(MarkUp markUp) throws WTException
getViewable
in interface ViewMarkUpService
markUp
-
WTException
public WTValuedMap getViewable(WTCollection markUps) throws WTException
getViewable
in interface ViewMarkUpService
markUps
- WTCollection of MarkUp objects
WTException
public Void deleteMarkUp(MarkUp markUp) throws WTException
deleteMarkUp
in interface ViewMarkUpService
markUp
-
WTException
public Void deleteMarkUp(WTSet markUps) throws WTException
deleteMarkUp
in interface ViewMarkUpService
markUps
- WTCollection of MarkUp objects
WTException
public void unLockMarkUp(MarkUp markUp) throws WTException, WTPropertyVetoException
unLockMarkUp
in interface ViewMarkUpService
markUp
-
WTException
WTPropertyVetoException
public void lockMarkUp(MarkUp markUp) throws WTException, WTPropertyVetoException
lockMarkUp
in interface ViewMarkUpService
markUp
-
WTException
WTPropertyVetoException
public DerivedImage storeDerivedImage(Representable representable, String imageName, String imageDescription, String imageAdditionalInfo, RepresentationType imageType, DerivationType derivationType, ConfigSpec representableConfigSpec, ConfigSpec derivedFromConfigSpec, RepresentationContributor derivedFrom) throws WTException, WTPropertyVetoException, PropertyVetoException
storeDerivedImage
in interface ViewMarkUpService
representable
- The object playing the role of representable for the DerivedImage. Required.imageName
- Name of the DerivedImage. Required.imageDescription
- Description of the DerivedImage. Optional.imageAdditionalInfo
- Additional information for the DerivedImage. Optional.imageType
- RepresentationType of the DerivedImage. Required.derivationType
- DerivationType of the DerivedImage. Required.representableConfigSpec
- Object playing the role of representableConfigSpec. Must be a WTObject. Optional.derivedFromConfigSpec
- Object playing the role of derivedFromConfigSpec. Must be a WTObject. Optional.derivedFrom
- Object playing the role of derivedFrom. Optional.
WTException
WTPropertyVetoException
PropertyVetoException
public DerivedImage storeDerivedImage(Representable representable, String imageName, String imageDescription, String imageAdditionalInfo, RepresentationType imageType, DerivationType derivationType, ConfigSpec representableConfigSpec, ConfigSpec derivedFromConfigSpec, RepresentationContributor derivedFrom, String CADFormName, String CADPartName) throws WTException, WTPropertyVetoException, PropertyVetoException
storeDerivedImage
in interface ViewMarkUpService
representable
- The object playing the role of representable for the DerivedImage. Required.imageName
- Name of the DerivedImage. Required.imageDescription
- Description of the DerivedImage. Optional.imageAdditionalInfo
- Additional information for the DerivedImage. Optional.imageType
- RepresentationType of the DerivedImage. Required.derivationType
- DerivationType of the DerivedImage. Required.representableConfigSpec
- Object playing the role of representableConfigSpec. Must be a WTObject. Optional.derivedFromConfigSpec
- Object playing the role of derivedFromConfigSpec. Must be a WTObject. Optional.derivedFrom
- Object playing the role of derivedFrom. Optional.CADFormName
- CADPartName
-
WTException
WTPropertyVetoException
PropertyVetoException
public DerivedImage postStoreDerivedImage(DerivedImage derivedImage, Boolean defaultRepresentation) throws WTException, PropertyVetoException
postStoreDerivedImage
in interface ViewMarkUpService
derivedImage
- defaultRepresentation
-
WTException
PropertyVetoException
public Void deleteDerivedImage(DerivedImage derivedImage) throws WTException
deleteDerivedImage
in interface ViewMarkUpService
derivedImage
-
WTException
public Void deleteDerivedImage(DerivedImage derivedImage, boolean noDefaultsOK) throws WTException
deleteDerivedImage
in interface ViewMarkUpService
derivedImage
- noDefaultsOK
-
WTException
public Void deleteDerivedImage(WTSet derivedImages, boolean noDefaultsOK) throws WTException
deleteDerivedImage
in interface ViewMarkUpService
derivedImages
- WTSet of DerivedImage objectsnoDefaultsOK
-
WTException
public ConfigSpec getDerivedFromConfigSpec(DerivedImage derivedImage) throws WTException
getDerivedFromConfigSpec
in interface ViewMarkUpService
derivedImage
-
WTException
public ConfigSpec setDerivedFromConfigSpec(ConfigSpec configSpec, DerivedImage derivedImage) throws WTException, WTPropertyVetoException
setDerivedFromConfigSpec
in interface ViewMarkUpService
configSpec
- derivedImage
-
WTException
WTPropertyVetoException
public ConfigSpec getRepresentableConfigSpec(DerivedImage derivedImage) throws WTException
getRepresentableConfigSpec
in interface ViewMarkUpService
derivedImage
-
WTException
public ConfigSpec setRepresentableConfigSpec(ConfigSpec configSpec, DerivedImage derivedImage) throws WTException, WTPropertyVetoException
setRepresentableConfigSpec
in interface ViewMarkUpService
configSpec
- derivedImage
-
WTException
WTPropertyVetoException
public QueryResult findDuplicateDerivedImages(DerivedImage image) throws WTException
findDuplicateDerivedImages
in interface ViewMarkUpService
image
-
WTException
public PublishingProhibition getPublishingProhibition(Representable representable) throws WTException
PublishingProhibition
for
a Representable; if null is returned, then the Representable is publishable.
getPublishingProhibition
in interface ViewMarkUpService
representable
-
WTException
public WTValuedMap getPublishingProhibition(WTCollection representables) throws WTException
PublishingProhibition
for
each Representable; if a Representable is not returned as a key in
the WTValuedMap, then that Representable is publishable
getPublishingProhibition
in interface ViewMarkUpService
representables
- WTCollection of Representable objects
WTException
protected ConfigSpec setRepresentableConfigSpecInternal(ConfigSpec configSpec, DerivedImage derivedImage, boolean check) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected ConfigSpec setDerivedFromConfigSpecInternal(ConfigSpec configSpec, DerivedImage derivedImage, boolean check) throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
protected QueryResult findDuplicateDerivedImagesInternal(DerivedImage image, Representable representable) throws WTException
WTException
protected void processCleanupLinkEvent(Persistable target, Persistable plink) throws WTException
WTException
protected void processPostChangeDomainEvent(WTCollection target) throws WTException
WTException
private void postMakeUnrestorable(Viewable viewable) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |