public class NodePropertyAccess
extends org.dataone.cn.ldap.LDAPService
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
static String |
NODE_PROPERTY_ID |
static String |
NODE_PROPERTY_KEY |
static String |
NODE_PROPERTY_TYPE |
static String |
NODE_PROPERTY_VALUE |
static String |
OBJECT_CLASS_ID |
Constructor and Description |
---|
NodePropertyAccess() |
Modifier and Type | Method and Description |
---|---|
protected String |
buildNodePropertyDN(org.dataone.service.types.v1.NodeReference nodeReference,
org.dataone.service.types.v2.Property property)
provide a nodeReference and Property to return a string that
should conform to distinguished name rules for
a node property entry in ldap
XXX As an after thought, this should be returning a DN structure
not a string!
|
protected String |
buildNodePropertyId(org.dataone.service.types.v2.Property property)
the string to identify a property is a combination of the property name and
its version in order to differentiate it from other versions of the same name
The function will return a string such that name-version is the result
|
protected Boolean |
deleteNodeProperty(DirContext ctx,
org.dataone.service.types.v1.NodeReference nodeReference,
org.dataone.service.types.v2.Property property)
remove the Node Property from LDAP, note all other dependent structures
have to be removed before this is called or it will fail.
|
protected List<org.dataone.service.types.v2.Property> |
getPropertyList(DirContext ctx,
String nodeIdentifier)
retrieve list of Node Properties from LDAP
|
protected Attributes |
mapNodePropertyAttributes(org.dataone.service.types.v2.Node node,
org.dataone.service.types.v2.Property property)
from the provided Node and Service, fill in the Attributes that will be used
to create the Node Property entry in LDAP
ServiceMethodRestrictions are not included in this mapping
|
public static org.apache.commons.logging.Log log
public static final String OBJECT_CLASS_ID
public static final String NODE_PROPERTY_ID
public static final String NODE_PROPERTY_KEY
public static final String NODE_PROPERTY_VALUE
public static final String NODE_PROPERTY_TYPE
protected String buildNodePropertyDN(org.dataone.service.types.v1.NodeReference nodeReference, org.dataone.service.types.v2.Property property)
nodeReference
- property
- protected String buildNodePropertyId(org.dataone.service.types.v2.Property property)
property
- protected Boolean deleteNodeProperty(DirContext ctx, org.dataone.service.types.v1.NodeReference nodeReference, org.dataone.service.types.v2.Property property)
nodeReference
- property
- protected List<org.dataone.service.types.v2.Property> getPropertyList(DirContext ctx, String nodeIdentifier) throws org.dataone.service.exceptions.ServiceFailure
nodeIdentifier
- org.dataone.service.exceptions.ServiceFailure
protected Attributes mapNodePropertyAttributes(org.dataone.service.types.v2.Node node, org.dataone.service.types.v2.Property property)
node
- property
- Copyright © 2017. All rights reserved.