|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.ecmimpl.cmis.alfresco.OwCMISALAspectsService
public class OwCMISALAspectsService
Helper class for mandatory aspect definition. This class is needed during creation process to verify and retrieve mandatory aspect definitions from Alfresco system.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor Summary | |
---|---|
OwCMISALAspectsService()
|
Method Summary | |
---|---|
void |
ensureMandatroyAspects(OwCMISNetwork network,
OwCMISObjectClass objClass)
Verify cache initialized/existent, before retrieve of information is requested. |
protected OwCMISALAspectRetriever |
getAspectRetriever(OwCMISNetwork network)
Read the configuration and create the OwCMISALAspectRetriever, which will be used to get Mandatory Aspects information for specific types. |
static boolean |
isCacheInitialised(OwCMISObjectClass objClass)
Check if mandatory aspects information already exist in cache or not. |
void |
retrieveManadatoryAspects(OwCMISNetwork network,
OwCMISObjectClass objClass)
Method which will use a OwCMISALAspectRetriever to get the information about Aspects of provided class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwCMISALAspectsService()
Method Detail |
---|
public void retrieveManadatoryAspects(OwCMISNetwork network, OwCMISObjectClass objClass) throws com.wewebu.ow.server.exceptions.OwException, IOException
Attention: Existing cache will be overwritten, this method will not verify the cache (ensureMandatroyAspects(OwCMISNetwork, OwCMISObjectClass)
at all.
network
- OwCMISNetwork to be used for additional informationobjClass
- OwCMISObjectClass to retrieve Aspect information
com.wewebu.ow.server.exceptions.OwException
- if problem occur with creating instance of retriever
IOException
- if problem occur during network communication to (ECM) back-end systempublic void ensureMandatroyAspects(OwCMISNetwork network, OwCMISObjectClass objClass) throws com.wewebu.ow.server.exceptions.OwException, IOException
retrieveManadatoryAspects(OwCMISNetwork, OwCMISObjectClass)
.
network
- OwCMISNetworkobjClass
- OwCMISObjectClass to ensure aspects cache
com.wewebu.ow.server.exceptions.OwException
- see retrieveManadatoryAspects(...)
IOException
- see retrieveManadatoryAspects(...)
retrieveManadatoryAspects(OwCMISNetwork, OwCMISObjectClass)
public static boolean isCacheInitialised(OwCMISObjectClass objClass)
objClass
- OwCMISObjectClass to be verified
protected OwCMISALAspectRetriever getAspectRetriever(OwCMISNetwork network) throws com.wewebu.ow.server.exceptions.OwException
A basic retriever is instantiated if no explicit configuration is found, else an instance from defined retriever is created using default constructor.
network
- OwCMISNetwork to be used for configuration information
com.wewebu.ow.server.exceptions.OwException
- if fail to create instance of retriever
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |