com.wewebu.ow.server.ecmimpl.cmis
Class OwCMISResourceObjectModel

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.OwCMISResourceObjectModel
All Implemented Interfaces:
OwCMISObjectModel

public class OwCMISResourceObjectModel
extends Object
implements OwCMISObjectModel

OwCMISResourceObjectModel.

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


Field Summary
protected static OwCMISACLModel DISCOVERED
           
protected static OwCMISACLModel MANAGED
           
 
Constructor Summary
OwCMISResourceObjectModel(OwCMISResource resource_p, OwCMISObjectClassFactory objectClassFactory_p)
           
 
Method Summary
 OwCMISACLModel getACLModel()
          Return the ACL model of current repository.
 OwCMISObjectClass getObjectClass(String strClassName_p)
          Returning the OwCMISObjectClass for the given objectClassName_p.
 Map<String,String> getObjectClassNames(int[] types_p, boolean excludeHiddenAndNonInstantiable_p, boolean rootOnly_p, Locale locale_p)
          This method is called by network to request the map.
 OwCMISPropertyClass getPropertyClass(String strFullQualifiedName_p)
          Get OwPropertyClass by full qualified name of property.
A full qualified name of a property is a concatenation of object class name and property class name using a separator character.
 OwCMISResource getResource()
          Return the depending OwCMISResource which is used for the meta-model calls.
 OwCMISVersionModel getVersionModel()
          Return a handler for versioning, version and version series creation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MANAGED

protected static final OwCMISACLModel MANAGED

DISCOVERED

protected static final OwCMISACLModel DISCOVERED
Constructor Detail

OwCMISResourceObjectModel

public OwCMISResourceObjectModel(OwCMISResource resource_p,
                                 OwCMISObjectClassFactory objectClassFactory_p)
                          throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException
Method Detail

getObjectClass

public OwCMISObjectClass getObjectClass(String strClassName_p)
                                 throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISObjectModel
Returning the OwCMISObjectClass for the given objectClassName_p.

Specified by:
getObjectClass in interface OwCMISObjectModel
Parameters:
strClassName_p - String representing unique symbolic name
Returns:
OwCMISObjectClass
Throws:
com.wewebu.ow.server.exceptions.OwException - if object class could not be found

getObjectClassNames

public Map<String,String> getObjectClassNames(int[] types_p,
                                              boolean excludeHiddenAndNonInstantiable_p,
                                              boolean rootOnly_p,
                                              Locale locale_p)
                                       throws com.wewebu.ow.server.exceptions.OwException
This method is called by network to request the map.

Specified by:
getObjectClassNames in interface OwCMISObjectModel
Parameters:
types_p - array of types or null,
excludeHiddenAndNonInstantiable_p - boolean to filter hidden or not instantiable classes
rootOnly_p - requesting only root classes
Returns:
a map of symbolic class name to display name
Throws:
com.wewebu.ow.server.exceptions.OwException
See Also:
OwRepository.getObjectClassNames(int[],boolean, boolean, OwResource)

getPropertyClass

public OwCMISPropertyClass getPropertyClass(String strFullQualifiedName_p)
                                     throws com.wewebu.ow.server.exceptions.OwException
Get OwPropertyClass by full qualified name of property.
A full qualified name of a property is a concatenation of object class name and property class name using a separator character.
 String strFullQualifiedName = objectClassName + "." + propertyClassName;

If strFullQualifiedName_p does not contains the separator character, the CMIS base classes are searched for the property definition.

Specified by:
getPropertyClass in interface OwCMISObjectModel
Parameters:
strFullQualifiedName_p - String qualified property name
Returns:
OwFieldDefinition of the requested property/field
Throws:
com.wewebu.ow.server.exceptions.OwException - if strFullQualifiedName_p is null a OwInvalidOperationException or if OwFieldDefinition was not found a OwObjectNotFoundException is thrown.

getVersionModel

public OwCMISVersionModel getVersionModel()
                                   throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISObjectModel
Return a handler for versioning, version and version series creation.

Specified by:
getVersionModel in interface OwCMISObjectModel
Returns:
OwCMISVersionModel
Throws:
com.wewebu.ow.server.exceptions.OwException
See Also:
OwCMISVersionModel

getACLModel

public OwCMISACLModel getACLModel()
                           throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISObjectModel
Return the ACL model of current repository.

Specified by:
getACLModel in interface OwCMISObjectModel
Returns:
OwCMISACLModel
Throws:
com.wewebu.ow.server.exceptions.OwException - if could not retrieve information about possible ACL handling
com.wewebu.ow.server.exceptions.OwNotSupportedException

getResource

public OwCMISResource getResource()
Description copied from interface: OwCMISObjectModel
Return the depending OwCMISResource which is used for the meta-model calls.

Specified by:
getResource in interface OwCMISObjectModel
Returns:
OwCMISResource


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.