com.wewebu.ow.server.ecmimpl.cmis.propertyclasses
Class OwCMISNativePropertyClass

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.propertyclasses.OwCMISNativePropertyClass
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwPropertyClass, OwCMISPropertyClass, com.wewebu.ow.server.field.OwFieldDefinition
Direct Known Subclasses:
OwCMISNativePropertyClassTemplate

public abstract class OwCMISNativePropertyClass
extends Object
implements OwCMISPropertyClass

Property class wrapper for CMIS property definition type.

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
 
Fields inherited from interface com.wewebu.ow.server.ecm.OwPropertyClass
CONTEXT_MAX, CONTEXT_NORMAL, CONTEXT_ON_CHECKIN, CONTEXT_ON_CREATE
 
Constructor Summary
OwCMISNativePropertyClass(OwCMISObjectClass objectClass_p, OwCMISQuerySchema querySchema_p)
           
 
Method Summary
protected abstract  com.wewebu.ow.server.field.OwEnumCollection createEnums()
           
abstract  OwCMISNativeProperty createProperty(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty property_p, OwCMISNetwork network_p)
           
 boolean equals(Object obj_p)
           
 String getCategory()
           
 String getClassName()
           
 List<?> getComplexChildClasses()
           
 Object getDefaultValue()
           
 String getDescription(Locale locale_p)
           
 String getDisplayName(Locale locale_p)
           
 com.wewebu.ow.server.field.OwEnumCollection getEnums()
           
abstract  OwCMISNativeFormat getFormat()
           
 String getFullQualifiedName()
          Returns the full qualified name which is created from the OwCMISPropertyClass.getObjectClass() class name and the OwCMISPropertyClass.getNonQualifiedName(), separated with an '.' (dot) between the names.
abstract  org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyDefinitionType getNativeType()
           
 Node getNodeFromValue(Object value_p, Document doc_p)
           
 String getNonQualifiedName()
          Returns the non qualified name ( the CMIS definition name of this property)
 OwCMISObjectClass getObjectClass()
          Get the ObjectClassName which is parent of this property.
 String getQueryName(OwCMISQueryContext context_p)
          Returns the specified queryName of the property which should be used in search request instead of the id or property name.
 Object getValueFromNode(Node node_p)
           
 Object getValueFromString(String text_p)
           
 int hashCode()
           
 boolean isArray()
           
 boolean isComplex()
           
 boolean isEnum()
           
 boolean isHidden(int context_p)
           
 boolean isNameProperty()
           
 boolean isOrderable()
          Returns a boolean representation, notifying the possibility of this property to be used in ORDER BY clause.
 boolean isQueryable(OwCMISQueryContext context_p)
          Returns a boolean representation if this property can occur in WHERE clause for filtration.
 boolean isReadOnly(int context_p)
           
 boolean isRequired()
           
 boolean isSystemProperty()
           
 OwCMISNativeProperty newProperty(OwCMISObject object_p, Object value_p, OwCMISNetwork netowrk_p)
          Create a new Instance of the specific OwCMISProperty depending on the current OwCMISPropertyClass.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.wewebu.ow.server.field.OwFieldDefinition
getJavaClassName, getMaxValue, getMinValue, getOperators
 

Constructor Detail

OwCMISNativePropertyClass

public OwCMISNativePropertyClass(OwCMISObjectClass objectClass_p,
                                 OwCMISQuerySchema querySchema_p)
Method Detail

newProperty

public OwCMISNativeProperty newProperty(OwCMISObject object_p,
                                        Object value_p,
                                        OwCMISNetwork netowrk_p)
                                 throws com.wewebu.ow.server.exceptions.OwException
Description copied from interface: OwCMISPropertyClass
Create a new Instance of the specific OwCMISProperty depending on the current OwCMISPropertyClass.

Specified by:
newProperty in interface OwCMISPropertyClass
Parameters:
object_p - OwCMISObject to be used, can be null
value_p - Object the initial value which should be set, can be null
netowrk_p - current network
Returns:
OwCMISProperty with given value, depending on the current property class.
Throws:
com.wewebu.ow.server.exceptions.OwException - if creation of OwCMISProperty failed

createProperty

public abstract OwCMISNativeProperty createProperty(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty property_p,
                                                    OwCMISNetwork network_p)
                                             throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException

createEnums

protected abstract com.wewebu.ow.server.field.OwEnumCollection createEnums()
                                                                    throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

getCategory

public String getCategory()
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getCategory in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
com.wewebu.ow.server.exceptions.OwException

isHidden

public boolean isHidden(int context_p)
                 throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isHidden in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
com.wewebu.ow.server.exceptions.OwException

isNameProperty

public boolean isNameProperty()
                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isNameProperty in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
com.wewebu.ow.server.exceptions.OwException

isReadOnly

public boolean isReadOnly(int context_p)
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isReadOnly in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
com.wewebu.ow.server.exceptions.OwException

isSystemProperty

public boolean isSystemProperty()
                         throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isSystemProperty in interface com.wewebu.ow.server.ecm.OwPropertyClass
Throws:
com.wewebu.ow.server.exceptions.OwException

getNonQualifiedName

public String getNonQualifiedName()
Description copied from interface: OwCMISPropertyClass
Returns the non qualified name ( the CMIS definition name of this property)

Specified by:
getNonQualifiedName in interface OwCMISPropertyClass
Returns:
String representing the full qualified name

getClassName

public String getClassName()
Specified by:
getClassName in interface com.wewebu.ow.server.field.OwFieldDefinition

getComplexChildClasses

public List<?> getComplexChildClasses()
                               throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getComplexChildClasses in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

getDefaultValue

public Object getDefaultValue()
                       throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getDefaultValue in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

getDescription

public String getDescription(Locale locale_p)
Specified by:
getDescription in interface com.wewebu.ow.server.field.OwFieldDefinition

getDisplayName

public String getDisplayName(Locale locale_p)
Specified by:
getDisplayName in interface com.wewebu.ow.server.field.OwFieldDefinition

getEnums

public com.wewebu.ow.server.field.OwEnumCollection getEnums()
                                                     throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getEnums in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

getFormat

public abstract OwCMISNativeFormat getFormat()
Specified by:
getFormat in interface com.wewebu.ow.server.field.OwFieldDefinition

getNativeType

public abstract org.oasis_open.docs.ns.cmis.core._200908.CmisPropertyDefinitionType getNativeType()
Specified by:
getNativeType in interface com.wewebu.ow.server.field.OwFieldDefinition

getNodeFromValue

public Node getNodeFromValue(Object value_p,
                             Document doc_p)
                      throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getNodeFromValue in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

getValueFromNode

public Object getValueFromNode(Node node_p)
                        throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getValueFromNode in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

getValueFromString

public Object getValueFromString(String text_p)
                          throws com.wewebu.ow.server.exceptions.OwException
Specified by:
getValueFromString in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

isArray

public boolean isArray()
                throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isArray in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

isComplex

public boolean isComplex()
Specified by:
isComplex in interface com.wewebu.ow.server.field.OwFieldDefinition

isEnum

public boolean isEnum()
               throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isEnum in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

isRequired

public boolean isRequired()
                   throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isRequired in interface com.wewebu.ow.server.field.OwFieldDefinition
Throws:
com.wewebu.ow.server.exceptions.OwException

getQueryName

public String getQueryName(OwCMISQueryContext context_p)
Description copied from interface: OwCMISPropertyClass
Returns the specified queryName of the property which should be used in search request instead of the id or property name.

see CMIS spec 1.0, chapter 2.1.3.2.1 Attributes common to ALL Object-Type Property Definitions

Specified by:
getQueryName in interface OwCMISPropertyClass
Returns:
String queryName

getFullQualifiedName

public String getFullQualifiedName()
Description copied from interface: OwCMISPropertyClass
Returns the full qualified name which is created from the OwCMISPropertyClass.getObjectClass() class name and the OwCMISPropertyClass.getNonQualifiedName(), separated with an '.' (dot) between the names.

Specified by:
getFullQualifiedName in interface OwCMISPropertyClass
Returns:
String representing the full qualified name

getObjectClass

public OwCMISObjectClass getObjectClass()
Description copied from interface: OwCMISPropertyClass
Get the ObjectClassName which is parent of this property.

Specified by:
getObjectClass in interface OwCMISPropertyClass
Returns:
String id/name of object class

isQueryable

public boolean isQueryable(OwCMISQueryContext context_p)
Description copied from interface: OwCMISPropertyClass
Returns a boolean representation if this property can occur in WHERE clause for filtration.

see CMIS spec 1.0, chapter 2.1.3.2.1 Attributes common to ALL Object-Type Property Definitions

Specified by:
isQueryable in interface OwCMISPropertyClass
Returns:
boolean true if possible to use for filtering, else false

isOrderable

public boolean isOrderable()
Description copied from interface: OwCMISPropertyClass
Returns a boolean representation, notifying the possibility of this property to be used in ORDER BY clause.

see CMIS specification 1.0, chapter 2.1.3.2.1 Attributes common to ALL Object-Type Property Definitions

Specified by:
isOrderable in interface OwCMISPropertyClass
Returns:
boolean true if possible to order/sort the values, else false.

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj_p)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.