com.wewebu.ow.server.ecmimpl.cmis.property
Class OwCMISStaticProperty

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.cmis.property.OwCMISStaticProperty

public class OwCMISStaticProperty
extends Object

OwCMISStaticProperty, helper class. This class contains methods for checks and conversion of property values and class 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


Constructor Summary
OwCMISStaticProperty()
           
 
Method Summary
static Boolean getBooleanValue(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
          Returning the first Boolean value of CmisProperty or null.
static List<Boolean> getBooleanValues(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
          Casting and extracting Boolean values as list from given CmisProperty.
static String getIdValue(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
          Returning the first Id as String from given CmisProperty, if the property is from type CmisPropertyId and has a non-empty value list.
static List<String> getIdValues(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
          Casting and extracting Id values as list from given CmisProperty.
static String getStringValue(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
          Returning the first String value of CmisProperty or null.
static List<String> getStringValues(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
          Casting and extracting String values as list from given CmisProperty.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwCMISStaticProperty

public OwCMISStaticProperty()
Method Detail

getIdValues

public static List<String> getIdValues(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
                                throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Casting and extracting Id values as list from given CmisProperty.

Parameters:
cmisProperty_p - CmisProperty of type CmisPropertyId, non-null value
Returns:
List of Strings which representing the Id values.
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if given property is not a CmisPropertyId

getIdValue

public static String getIdValue(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
                         throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Returning the first Id as String from given CmisProperty, if the property is from type CmisPropertyId and has a non-empty value list.

Parameters:
cmisProperty_p - CmisProperty from where to request the value
Returns:
String representing the Id value, or null
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if CmisProperty is not from type CmisPropertyId
See Also:
getIdValues(CmisProperty)

getBooleanValues

public static List<Boolean> getBooleanValues(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
                                      throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Casting and extracting Boolean values as list from given CmisProperty.

Parameters:
cmisProperty_p - CmisProperty of type CmisPropertyBoolean, non-null value
Returns:
List of Boolean values or null if cmisProperty_p is null.
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if given property is not a CmisPropertyBoolean

getBooleanValue

public static Boolean getBooleanValue(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
                               throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Returning the first Boolean value of CmisProperty or null.

Parameters:
cmisProperty_p - CmisProperty of type CmisPropertyBoolean, non-null value
Returns:
Boolean or null if property value list is empty or null.
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if given property is not a CmisPropertyBoolean

getStringValues

public static List<String> getStringValues(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
                                    throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Casting and extracting String values as list from given CmisProperty.

Parameters:
cmisProperty_p - CmisProperty of type CmisPropertyString, non-null value
Returns:
List of String values or null if cmisProperty_p is null.
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if given property is not a CmisPropertyString

getStringValue

public static String getStringValue(org.oasis_open.docs.ns.cmis.core._200908.CmisProperty cmisProperty_p)
                             throws com.wewebu.ow.server.exceptions.OwInvalidOperationException
Returning the first String value of CmisProperty or null.

Parameters:
cmisProperty_p - CmisProperty of type CmisPropertyString, non-null value
Returns:
String or null if property value list is empty or null.
Throws:
com.wewebu.ow.server.exceptions.OwInvalidOperationException - if given property is not a CmisPropertyString


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.