public class CNIdentityLDAPImpl
extends org.dataone.cn.ldap.LDAPService
implements org.dataone.service.cn.v2.CNIdentity
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
Constructor and Description |
---|
CNIdentityLDAPImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
confirmMapIdentity(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject secondarySubject) |
org.dataone.service.types.v1.Subject |
createGroup(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Group group) |
boolean |
denyMapIdentity(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject secondarySubject) |
org.dataone.service.types.v1.SubjectInfo |
getPendingMapIdentity(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject subject) |
org.dataone.service.types.v1.SubjectInfo |
getSubjectInfo(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject subject) |
org.dataone.service.types.v1.SubjectInfo |
listSubjects(org.dataone.service.types.v1.Session session,
String query,
String status,
Integer start,
Integer count) |
protected List<org.dataone.service.types.v1.Group> |
lookupGroups(String personDn)
Given a Person, we need to find which Groups it is a member of
|
static void |
main(String[] args) |
boolean |
mapIdentity(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject primarySubject,
org.dataone.service.types.v1.Subject secondarySubject) |
org.dataone.service.types.v1.Subject |
registerAccount(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Person p) |
boolean |
removeMapIdentity(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject secondarySubject) |
boolean |
removeSubject(org.dataone.service.types.v1.Subject p) |
boolean |
requestMapIdentity(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject secondarySubject) |
boolean |
requestMapIdentityBRL(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject secondarySubject) |
void |
setBase(String base) |
org.dataone.service.types.v1.Subject |
updateAccount(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Person p) |
boolean |
updateGroup(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Group group) |
boolean |
verifyAccount(org.dataone.service.types.v1.Session session,
org.dataone.service.types.v1.Subject subject) |
addCountry, addDc, addOrg, addOrgUnit, checkAttribute, closeContext, constructTree, getAdmin, getAttributeValues, getBase, getContext, getDefaultContext, getEnumerationValueString, getPassword, getSecureContext, getServer, parseAttribute, removeEntry, setAdmin, setPassword, setServer
public void setBase(String base)
setBase
in class org.dataone.cn.ldap.LDAPService
public org.dataone.service.types.v1.Subject createGroup(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Group group) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidRequest
createGroup
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidRequest
public boolean updateGroup(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Group group) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
updateGroup
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean mapIdentity(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject primarySubject, org.dataone.service.types.v1.Subject secondarySubject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
mapIdentity
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean requestMapIdentityBRL(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject secondarySubject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean requestMapIdentity(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject secondarySubject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
requestMapIdentity
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public boolean confirmMapIdentity(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject secondarySubject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
confirmMapIdentity
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1.Subject updateAccount(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Person p) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotAuthorized
updateAccount
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotAuthorized
public boolean verifyAccount(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject subject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.InvalidRequest
verifyAccount
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.InvalidRequest
public org.dataone.service.types.v1.Subject registerAccount(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Person p) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
registerAccount
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidRequest
public org.dataone.service.types.v1.SubjectInfo getSubjectInfo(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject subject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.NotFound
getSubjectInfo
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotFound
protected List<org.dataone.service.types.v1.Group> lookupGroups(String personDn) throws org.dataone.service.exceptions.ServiceFailure
personDn
- the Person dn for which we need membership informationorg.dataone.service.exceptions.ServiceFailure
public org.dataone.service.types.v1.SubjectInfo listSubjects(org.dataone.service.types.v1.Session session, String query, String status, Integer start, Integer count) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented
listSubjects
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
public boolean removeSubject(org.dataone.service.types.v1.Subject p)
public boolean denyMapIdentity(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject secondarySubject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
denyMapIdentity
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public org.dataone.service.types.v1.SubjectInfo getPendingMapIdentity(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject subject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
getPendingMapIdentity
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public boolean removeMapIdentity(org.dataone.service.types.v1.Session session, org.dataone.service.types.v1.Subject secondarySubject) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotFound, org.dataone.service.exceptions.NotImplemented
removeMapIdentity
in interface org.dataone.service.cn.v2.CNIdentity
org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.NotImplemented
public static void main(String[] args)
Copyright © 2015. All rights reserved.