public class ServiceMethodRestrictionsAccess
extends org.dataone.cn.ldap.LDAPService
| Modifier and Type | Field and Description |
|---|---|
static org.apache.commons.logging.Log |
log |
static String |
OBJECT_CLASS_ID |
static String |
SERVICE_ALLOWED_SUBJECT |
static String |
SERVICE_METHOD_NAME |
| Constructor and Description |
|---|
ServiceMethodRestrictionsAccess() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
buildServiceMethodRestrictionDN(org.dataone.service.types.v1.NodeReference nodeReference,
org.dataone.service.types.v1.Service service,
org.dataone.service.types.v1.ServiceMethodRestriction restrict)
provide a nodeReference, a Service and ServiceMethodRestriction
to return a string that should conform to distinguished name rules for
a node service method restriction entry in ldap
XXX As an after thought, this should be returning a DN structure
not a string!
|
protected Boolean |
deleteServiceMethodRestriction(DirContext ctx,
org.dataone.service.types.v1.NodeReference nodeReference,
org.dataone.service.types.v1.Service service,
org.dataone.service.types.v1.ServiceMethodRestriction restrict)
remove the Node Service Method Restriction from LDAP
|
protected List<org.dataone.service.types.v1.ServiceMethodRestriction> |
getServiceMethodRestrictionList(DirContext ctx,
String nodeIdentifier,
String serviceIdentifier)
retrieve list of Node Service Method Restrictions from LDAP
|
protected org.dataone.service.types.v1.ServiceMethodRestriction |
mapServiceMethodRestriction(HashMap<String,NamingEnumeration> attributesMap)
from the provided attributeMap returned from an LDAP query,
fill out a Node Service Method Restriction object
|
protected Attributes |
mapServiceMethodRestrictionAttributes(org.dataone.service.types.v2.Node node,
org.dataone.service.types.v1.Service service,
org.dataone.service.types.v1.ServiceMethodRestriction restrict)
from the provided Node, Service and ServiceMethodRestriction,
fill in the Attributes that will be used
to create the Node Service Method Restriction entry in LDAP
|
public static org.apache.commons.logging.Log log
public static final String OBJECT_CLASS_ID
public static final String SERVICE_METHOD_NAME
public static final String SERVICE_ALLOWED_SUBJECT
protected String buildServiceMethodRestrictionDN(org.dataone.service.types.v1.NodeReference nodeReference, org.dataone.service.types.v1.Service service, org.dataone.service.types.v1.ServiceMethodRestriction restrict)
nodeReference - service - restrict - protected Boolean deleteServiceMethodRestriction(DirContext ctx, org.dataone.service.types.v1.NodeReference nodeReference, org.dataone.service.types.v1.Service service, org.dataone.service.types.v1.ServiceMethodRestriction restrict)
nodeReference - service - restrict - protected List<org.dataone.service.types.v1.ServiceMethodRestriction> getServiceMethodRestrictionList(DirContext ctx, String nodeIdentifier, String serviceIdentifier) throws org.dataone.service.exceptions.ServiceFailure
nodeIdentifier - serviceIdentifier - org.dataone.service.exceptions.ServiceFailureprotected org.dataone.service.types.v1.ServiceMethodRestriction mapServiceMethodRestriction(HashMap<String,NamingEnumeration> attributesMap) throws NamingException
attributesMap - NamingExceptionprotected Attributes mapServiceMethodRestrictionAttributes(org.dataone.service.types.v2.Node node, org.dataone.service.types.v1.Service service, org.dataone.service.types.v1.ServiceMethodRestriction restrict)
node - service - restrict - Copyright © 2017. All rights reserved.