com.wewebu.ow.server.ecmimpl.opencmis.propertyclass
Class OwCMISPropertyClassProxy<V,C extends OwCMISObjectClass>

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.opencmis.propertyclass.OwCMISAbstractPropertyClass<V,C>
      extended by com.wewebu.ow.server.ecmimpl.opencmis.propertyclass.OwCMISPropertyClassProxy<V,C>
All Implemented Interfaces:
com.wewebu.ow.server.ecm.OwPropertyClass, OwCMISPropertyClass<V>, com.wewebu.ow.server.field.OwFieldDefinition
Direct Known Subclasses:
OwCMISVirtualPropertyClassProxy

public class OwCMISPropertyClassProxy<V,C extends OwCMISObjectClass>
extends OwCMISAbstractPropertyClass<V,C>

Property class delegate-proxy. Subclasses can customize behavior and/or data handling through method or accessor overriding.

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
OwCMISPropertyClassProxy(String className, OwCMISPropertyClass<V> propertyClass, C objectClass)
           
 
Method Summary
 OwCMISProperty<V> from(V... value_p)
          Create a new Instance of the specific OwCMISProperty depending on the current OwCMISPropertyClass.
 Object getDefaultValue()
           
 String getDescription(Locale locale)
           
 String getDisplayName(Locale locale)
           
 com.wewebu.ow.server.field.OwEnumCollection getEnums()
           
 OwCMISFormat getFormat()
           
 String getJavaClassName()
           
 Object getMaxValue()
           
 Object getMinValue()
           
 Object getNativeType()
           
 String getNonQualifiedName()
          Returns the non qualified name ( the CMIS definition name of this property)
 Collection getOperators()
           
protected  OwCMISPropertyClass<V> getPropertyClass()
           
 String getQueryName()
          Returns the specified queryName of the property which should be used in search request instead of the id or property name.
 boolean isArray()
           
 boolean isHidden(int context)
           
 boolean isNameProperty()
           
 boolean isOrderable()
          Returns a boolean representation, notifying the possibility of this property to be used in ORDER BY clause.
 boolean isQueryable()
          Returns a boolean representation if this property can occur in WHERE clause for filtration.
 boolean isReadOnly(int context)
           
 boolean isRequired()
           
 boolean isSystem()
           
 
Methods inherited from class com.wewebu.ow.server.ecmimpl.opencmis.propertyclass.OwCMISAbstractPropertyClass
createProxy, getCategory, getClassName, getComplexChildClasses, getFullQualifiedName, getNodeFromValue, getObjectClass, getPreferredPropertyType, getValueFromNode, getValueFromString, isComplex, isEnum, isSystemProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISPropertyClassProxy

public OwCMISPropertyClassProxy(String className,
                                OwCMISPropertyClass<V> propertyClass,
                                C objectClass)
Method Detail

getPropertyClass

protected OwCMISPropertyClass<V> getPropertyClass()

isArray

public boolean isArray()
                throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

isHidden

public boolean isHidden(int context)
                 throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

isReadOnly

public boolean isReadOnly(int context)
                   throws com.wewebu.ow.server.exceptions.OwException
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)

Returns:
String representing the full qualified name

getQueryName

public String getQueryName()
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

Returns:
String queryName

isQueryable

public boolean isQueryable()
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

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

Returns:
boolean true if possible to order/sort the values, else false.

from

public OwCMISProperty<V> from(V... value_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.

Parameters:
value_p - Object the initial value which should be set, can be null
Returns:
OwCMISProperty with given value, depending on the current property class.
Throws:
com.wewebu.ow.server.exceptions.OwException - if creation of OwCMISProperty failed

getEnums

public com.wewebu.ow.server.field.OwEnumCollection getEnums()
                                                     throws com.wewebu.ow.server.exceptions.OwException
Throws:
com.wewebu.ow.server.exceptions.OwException

isSystem

public boolean isSystem()
                 throws com.wewebu.ow.server.exceptions.OwException
Specified by:
isSystem in class OwCMISAbstractPropertyClass<V,C extends OwCMISObjectClass>
Throws:
com.wewebu.ow.server.exceptions.OwException

isNameProperty

public boolean isNameProperty()
                       throws Exception
Throws:
Exception

getDisplayName

public String getDisplayName(Locale locale)

getDescription

public String getDescription(Locale locale)

getJavaClassName

public String getJavaClassName()

getNativeType

public Object getNativeType()
                     throws Exception
Throws:
Exception

isRequired

public boolean isRequired()
                   throws Exception
Throws:
Exception

getMaxValue

public Object getMaxValue()
                   throws Exception
Throws:
Exception

getMinValue

public Object getMinValue()
                   throws Exception
Throws:
Exception

getDefaultValue

public Object getDefaultValue()
                       throws Exception
Throws:
Exception

getOperators

public Collection getOperators()
                        throws Exception
Throws:
Exception

getFormat

public OwCMISFormat getFormat()


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.