|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.bea.content.cmis.rest.converters.BinaryPropertyHelper
public class BinaryPropertyHelper
Helper methods to consistently identify the one binary property exposed via cmis. The binary property is: The primary property, if that property is of type BINARY. Else, the first property definition with type BINARY. If there is no BINARY primary property and the first property found of type BINARY is null, then that is what is returned (it does not try to find the next BINARY property that is not null). If dealing w/ CMIS REST binaries, it is suggested to set expected BINARY property as primary on the node.
Method Summary | |
---|---|
static byte[] |
base64Decode(String encoded) Base64 decode a String |
static Property |
getBinaryProperty(Node node) Find the binary property for the node. |
static PropertyDefinition |
getBinaryPropertyDefinition(ObjectClass oc) Find the binary property definition for the object class. |
static boolean |
hasBinaryPropertyDefinition(ObjectClass oc) |
static boolean |
isPrimaryBinaryProperty(ObjectClass oc, Property prop) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Property getBinaryProperty(Node node) throws RepositoryException
node
-RepositoryException
public static boolean hasBinaryPropertyDefinition(ObjectClass oc)
public static PropertyDefinition getBinaryPropertyDefinition(ObjectClass oc) throws AuthorizationException
oc
-AuthorizationException
public static boolean isPrimaryBinaryProperty(ObjectClass oc, Property prop)
public static byte[] base64Decode(String encoded) throws RepositoryException
encoded
- the String to decodeRepositoryException
|
Oracle Fusion Middleware Java API for Oracle WebLogic Portal 10g Release 3 (10.3.2) E14255-01 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2010, Oracle. All rights reserved.