public interface DataAccessor
| Modifier and Type | Interface and Description |
|---|---|
static interface |
DataAccessor.GroupIterable |
static interface |
DataAccessor.InterfaceIterable |
static class |
DataAccessor.SizeCategory |
static interface |
DataAccessor.SubmitterIterable |
static interface |
DataAccessor.SubmitterPermissionsIterable |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
AdminDescription |
static java.lang.String |
AdminEmail |
static java.lang.String |
AdminName |
static SubmitterData |
AnonymousGroup |
static java.lang.String |
AnonymousGroupDescription |
static java.lang.String |
AnonymousGroupEmail |
static java.lang.String |
AnonymousGroupName |
static java.lang.String |
CliAdminDescription |
static java.lang.String |
CliAdminEmail |
static java.lang.String |
CliAdminName |
static java.lang.String |
NonServletInitKey |
static SubmitterData |
OpendofAdmin |
static SubmitterData |
OpenDofAllocationGroup |
static java.lang.String |
OpenDofAllocatorGroupDescription |
static java.lang.String |
OpenDofAllocatorGroupEmail |
static java.lang.String |
OpenDofAllocatorGroupName |
static SubmitterData |
PrivateGroup |
static java.lang.String |
PrivateGroupDescription |
static java.lang.String |
PrivateGroupEmail |
static java.lang.String |
PrivateGroupName |
static SubmitterData |
UserGroup |
static java.lang.String |
UserGroupDescription |
static java.lang.String |
UserGroupEmail |
static java.lang.String |
UserGroupName |
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(java.lang.String managerEmail,
SubmitterData group) |
void |
addInterface(InterfaceData interfaceData) |
void |
addSubmitter(SubmitterData submitterData) |
void |
addSubmitterToGroup(java.lang.String member,
java.lang.String group) |
void |
addSubRepoNode(java.lang.String parentRdn,
SubRepositoryNode child)
Add a SubRepo node.
|
InterfaceData |
allocateInterfaceId(InterfaceData iface,
java.lang.String rdn)
Allocate an IID from the named sub-repository node's pool.
|
void |
close() |
void |
deleteGroup(java.lang.String group,
boolean force) |
void |
deleteInterface(java.lang.String iid,
java.lang.String version,
SubRepositoryNode node) |
void |
deleteSubmitter(java.lang.String submitterEmail) |
void |
deleteSubRepoNode(java.lang.String parentRdn,
SubRepositoryNode node) |
SubmitterData |
getGroup(java.lang.String group) |
InterfaceData |
getInterface(java.lang.String iid,
java.lang.String version) |
java.lang.Integer |
getPermission(java.lang.String repoType,
java.lang.String iid,
java.lang.String version,
java.lang.String granteeEmail) |
java.util.List<SubmitterPermissions> |
getPermissions(java.lang.String repoType,
java.lang.String iid,
java.lang.String version) |
SubmitterData |
getSubmitter(java.lang.String submitterEmail) |
SubRepositoryNode |
getSubRepoNode(java.lang.String repoType,
java.lang.String rdn)
Return the requested node.
|
void |
init(java.util.Properties properties) |
boolean |
isMember(java.lang.String member,
java.lang.String group) |
java.util.List<GroupData> |
listGroups() |
DataAccessor.InterfaceIterable |
listInterfaces(java.lang.String repoType,
java.lang.String submitterName,
java.lang.String accessGroup,
java.lang.Boolean published)
Warning, potential persistence memory leak, caller must call close on the
iterable or iterator obtained from returned Iterable.
|
java.util.List<SubmitterData> |
listMembers(java.lang.String group)
Warning, potential persistence memory leak, caller must call close on the
iterable or iterator obtained from returned Iterable.
|
DataAccessor.InterfaceIterable |
listSharedInterfaces(java.lang.String repoType,
java.lang.String userEmail,
java.lang.Boolean published)
Lists all the interfaces that are shared with the user.
|
DataAccessor.SubmitterIterable |
listSubmitters()
Warning, potential persistence memory leak, caller must call close on the
iterable or iterator obtained from returned Iterable.
|
void |
removeSubmitterFromGroup(java.lang.String member,
java.lang.String group) |
void |
revokePermissions(java.lang.String repoType,
java.lang.String iid,
java.lang.String version,
java.lang.String granteeEmail) |
void |
setPermissions(java.lang.String repoType,
java.lang.String iid,
java.lang.String version,
java.lang.String granteeEmail,
int permission) |
void |
updateGroup(java.lang.String group,
java.lang.String adminEmail,
java.lang.String description,
java.util.Date date) |
void |
updateInterface(InterfaceData interfaceData) |
void |
updateSubmitter(java.lang.String submitterEmail,
SubmitterData submitterData) |
void |
updateSubRepoNode(java.lang.String rdn,
java.lang.String repoType,
SubRepositoryNode node) |
static final java.lang.String NonServletInitKey
static final java.lang.String AdminName
static final java.lang.String AdminEmail
static final java.lang.String AdminDescription
static final java.lang.String AnonymousGroupName
static final java.lang.String AnonymousGroupEmail
static final java.lang.String AnonymousGroupDescription
static final java.lang.String UserGroupName
static final java.lang.String UserGroupEmail
static final java.lang.String UserGroupDescription
static final java.lang.String PrivateGroupName
static final java.lang.String PrivateGroupEmail
static final java.lang.String PrivateGroupDescription
static final java.lang.String OpenDofAllocatorGroupName
static final java.lang.String OpenDofAllocatorGroupEmail
static final java.lang.String OpenDofAllocatorGroupDescription
static final java.lang.String CliAdminName
static final java.lang.String CliAdminEmail
static final java.lang.String CliAdminDescription
static final SubmitterData AnonymousGroup
static final SubmitterData UserGroup
static final SubmitterData PrivateGroup
static final SubmitterData OpenDofAllocationGroup
static final SubmitterData OpendofAdmin
void init(java.util.Properties properties) throws java.lang.Exception
java.lang.Exceptionvoid close()
void addSubmitter(SubmitterData submitterData) throws AlreadyExistsException, java.lang.Exception
submitterData - the submitter information.AlreadyExistsException - if the given submitter already existsjava.lang.Exception - if the submitter could not be addedSubmitterData getSubmitter(java.lang.String submitterEmail) throws NotFoundException, java.lang.Exception
submitterEmail - the requested submitter.NotFoundException - if the given submitter already existsjava.lang.Exception - if the submitter could not be addedvoid updateSubmitter(java.lang.String submitterEmail,
SubmitterData submitterData)
throws NotFoundException,
java.lang.Exception
submitterEmail - the requested submitter.submitterData - the submitter information.NotFoundException - if the given submitter already existsjava.lang.Exception - if the submitter could not be updatedvoid deleteSubmitter(java.lang.String submitterEmail)
throws java.lang.Exception
submitterEmail - the requested submitter.java.lang.Exception - if the submitter could not be deletedDataAccessor.SubmitterIterable listSubmitters() throws java.lang.Exception
java.lang.Exception - if the list can not be obtainedvoid addGroup(java.lang.String managerEmail,
SubmitterData group)
throws AlreadyExistsException,
NotFoundException,
java.lang.Exception
AlreadyExistsExceptionNotFoundExceptionjava.lang.ExceptionSubmitterData getGroup(java.lang.String group) throws NotFoundException, java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid updateGroup(java.lang.String group,
java.lang.String adminEmail,
java.lang.String description,
java.util.Date date)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid deleteGroup(java.lang.String group,
boolean force)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid addSubmitterToGroup(java.lang.String member,
java.lang.String group)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid removeSubmitterFromGroup(java.lang.String member,
java.lang.String group)
throws java.lang.Exception
java.lang.Exceptionboolean isMember(java.lang.String member,
java.lang.String group)
throws java.lang.Exception
java.lang.Exceptionjava.util.List<SubmitterData> listMembers(java.lang.String group) throws NotFoundException, java.lang.Exception
group - The group to list membersNotFoundException - if the group does not exist in the data storejava.lang.Exception - if the list can not be obtainedjava.util.List<GroupData> listGroups() throws java.lang.Exception
java.lang.Exception - if the list can not be obtainedvoid addInterface(InterfaceData interfaceData) throws AlreadyExistsException, java.lang.Exception
AlreadyExistsExceptionjava.lang.ExceptionInterfaceData getInterface(java.lang.String iid, java.lang.String version) throws NotFoundException, java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid updateInterface(InterfaceData interfaceData) throws NotFoundException, java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid deleteInterface(java.lang.String iid,
java.lang.String version,
SubRepositoryNode node)
throws java.lang.Exception
java.lang.Exceptionvoid setPermissions(java.lang.String repoType,
java.lang.String iid,
java.lang.String version,
java.lang.String granteeEmail,
int permission)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid revokePermissions(java.lang.String repoType,
java.lang.String iid,
java.lang.String version,
java.lang.String granteeEmail)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exceptionjava.util.List<SubmitterPermissions> getPermissions(java.lang.String repoType, java.lang.String iid, java.lang.String version) throws NotFoundException, java.lang.Exception
NotFoundExceptionjava.lang.Exceptionjava.lang.Integer getPermission(java.lang.String repoType,
java.lang.String iid,
java.lang.String version,
java.lang.String granteeEmail)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.ExceptionDataAccessor.InterfaceIterable listInterfaces(java.lang.String repoType, java.lang.String submitterName, java.lang.String accessGroup, java.lang.Boolean published) throws java.lang.Exception
repoType - the repository type to return interfaces for. Must not be null.submitterName - the stored submitterName to return interfaces for. If null, do not filter on submitter.accessGroup - the access group to return interfaces for. If null, do not filter on access group.published - the published state to return interfaces for. If null, do not filter on published.java.lang.Exception - if the list can not be obtainedDataAccessor.InterfaceIterable listSharedInterfaces(java.lang.String repoType, java.lang.String userEmail, java.lang.Boolean published) throws java.lang.Exception
repoType - the repository type to return interfaces for. Must not be null.userEmail - the email used as the identifier for the authenticated user.published - the published state to return interfaces for. If null, do not filter on publishedjava.lang.Exception - if the list cannot be obtained.InterfaceData allocateInterfaceId(InterfaceData iface, java.lang.String rdn) throws NotFoundException, java.lang.Exception
iface - Required interface information for insertion to the interface table. Must not be nullrdn - the Relative Distinguished Name of the allocation pool node. Must not be nullNotFoundException - if the given rdn was not found.java.lang.Exception - if the node can not be obtained.SubRepositoryNode getSubRepoNode(java.lang.String repoType, java.lang.String rdn) throws NotFoundException, java.lang.Exception
repoType - the repository type. Must not be null.rdn - the '/' separated relative distinguished name from the repoType root. Must not be null.NotFoundException - if the given rdn was not found.java.lang.Exception - if the node could not be retrievedvoid addSubRepoNode(java.lang.String parentRdn,
SubRepositoryNode child)
throws AlreadyExistsException,
NotFoundException,
java.lang.Exception
parentRdn - the parent to add the node to. May be null.child - the child to be added to given parent. Must not be null.AlreadyExistsException - if the node already exists.NotFoundException - if the parentRdn can not be found.java.lang.Exception - if the node could not be added.void deleteSubRepoNode(java.lang.String parentRdn,
SubRepositoryNode node)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exceptionvoid updateSubRepoNode(java.lang.String rdn,
java.lang.String repoType,
SubRepositoryNode node)
throws NotFoundException,
java.lang.Exception
NotFoundExceptionjava.lang.Exception