public class AllseenController
extends java.lang.Object
implements org.opendof.tools.repository.interfaces.core.PersistenceController
This class implements the PersistenceController interface which provides a relay for
requests from the InterfaceServlet to be routed to the proper namespace controller.
PersistenceController,
CoreController| Constructor and Description |
|---|
AllseenController()
Allseen Controller default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
org.opendof.tools.repository.interfaces.da.InterfaceData |
addInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
org.opendof.tools.repository.interfaces.da.InterfaceData iface,
java.lang.String subRepoRdn) |
void |
addInterfaceSharePermission(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version,
java.lang.String email,
org.opendof.tools.repository.interfaces.da.SubmitterPermissions.PermissionLevel permissionLevel) |
void |
addSubRepositoryNode(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String parentRdn,
org.opendof.tools.repository.interfaces.da.SubRepositoryNode child) |
void |
deleteInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version) |
void |
deleteSubRepositoryNode(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String parentRdn,
org.opendof.tools.repository.interfaces.da.SubRepositoryNode node) |
void |
destroy() |
java.lang.String |
getIidFromXml(java.lang.String xml) |
org.opendof.tools.repository.interfaces.da.InterfaceData |
getInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version) |
java.lang.String |
getStandardIdentifier(java.lang.String urlInterfaceID) |
org.opendof.tools.repository.interfaces.da.SubRepositoryNode |
getSubRepositoryNode(java.lang.String repoType,
java.lang.String rdn) |
java.util.List<java.lang.String> |
getTranslations() |
org.opendof.tools.repository.interfaces.core.XMLTranslator |
getTranslator(java.lang.String translation) |
java.lang.String |
getURLIdentifier(java.lang.String standardInterfaceID) |
boolean |
hasAllocateSupport() |
void |
init(org.opendof.tools.repository.interfaces.core.CoreController core,
java.lang.String repoType,
org.opendof.tools.repository.interfaces.da.DataAccessor da,
boolean userGroupOnly) |
boolean |
isSupportingRepository(java.lang.String iid) |
java.util.List<org.opendof.tools.repository.interfaces.da.InterfaceData> |
listInterfaces(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String submitter,
java.lang.String accessGroup,
java.lang.Boolean published) |
java.util.List<org.opendof.tools.repository.interfaces.da.InterfaceData> |
listSharedInterfaces(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String submitter,
java.lang.Boolean published) |
void |
publishInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version) |
void |
updateInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String xml,
java.lang.String version,
org.opendof.tools.repository.interfaces.da.SubmitterData submitter,
org.opendof.tools.repository.interfaces.da.SubmitterData accessGroup,
java.lang.Boolean published) |
void |
updateSubRepositoryNode(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String rdn,
org.opendof.tools.repository.interfaces.da.SubRepositoryNode node) |
boolean |
versionSupported() |
public AllseenController()
public void init(org.opendof.tools.repository.interfaces.core.CoreController core,
java.lang.String repoType,
org.opendof.tools.repository.interfaces.da.DataAccessor da,
boolean userGroupOnly)
throws java.lang.Exception
init in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic boolean isSupportingRepository(java.lang.String iid)
isSupportingRepository in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic java.lang.String getIidFromXml(java.lang.String xml)
getIidFromXml in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic void destroy()
destroy in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic java.util.List<org.opendof.tools.repository.interfaces.da.InterfaceData> listInterfaces(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String submitter,
java.lang.String accessGroup,
java.lang.Boolean published)
throws java.lang.Exception
listInterfaces in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic java.util.List<org.opendof.tools.repository.interfaces.da.InterfaceData> listSharedInterfaces(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String submitter,
java.lang.Boolean published)
throws java.lang.Exception
listSharedInterfaces in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic org.opendof.tools.repository.interfaces.da.InterfaceData getInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version)
throws java.lang.Exception
getInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic org.opendof.tools.repository.interfaces.da.InterfaceData addInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
org.opendof.tools.repository.interfaces.da.InterfaceData iface,
java.lang.String subRepoRdn)
throws org.opendof.tools.repository.interfaces.da.SubmitterException,
org.opendof.tools.repository.interfaces.da.AlreadyExistsException,
org.opendof.tools.repository.interfaces.da.NotFoundException,
org.opendof.tools.repository.interfaces.da.InsufficentRightsException,
java.lang.Exception
addInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.SubmitterExceptionorg.opendof.tools.repository.interfaces.da.AlreadyExistsExceptionorg.opendof.tools.repository.interfaces.da.NotFoundExceptionorg.opendof.tools.repository.interfaces.da.InsufficentRightsExceptionjava.lang.Exceptionpublic void publishInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
java.lang.Exception
publishInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionjava.lang.Exceptionpublic void addInterfaceSharePermission(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version,
java.lang.String email,
org.opendof.tools.repository.interfaces.da.SubmitterPermissions.PermissionLevel permissionLevel)
addInterfaceSharePermission in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic void deleteInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
java.lang.Exception
deleteInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionjava.lang.Exceptionpublic void updateInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String xml,
java.lang.String version,
org.opendof.tools.repository.interfaces.da.SubmitterData submitter,
org.opendof.tools.repository.interfaces.da.SubmitterData accessGroup,
java.lang.Boolean published)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
org.opendof.tools.repository.interfaces.da.ImmutableException,
java.lang.Exception
updateInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionorg.opendof.tools.repository.interfaces.da.ImmutableExceptionjava.lang.Exceptionpublic org.opendof.tools.repository.interfaces.da.SubRepositoryNode getSubRepositoryNode(java.lang.String repoType,
java.lang.String rdn)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
java.lang.Exception
getSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionjava.lang.Exceptionpublic void deleteSubRepositoryNode(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String parentRdn,
org.opendof.tools.repository.interfaces.da.SubRepositoryNode node)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
java.lang.Exception
deleteSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionjava.lang.Exceptionpublic void addSubRepositoryNode(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String parentRdn,
org.opendof.tools.repository.interfaces.da.SubRepositoryNode child)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
java.lang.Exception
addSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionjava.lang.Exceptionpublic void updateSubRepositoryNode(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String rdn,
org.opendof.tools.repository.interfaces.da.SubRepositoryNode node)
throws org.opendof.tools.repository.interfaces.da.NotFoundException,
java.lang.Exception
updateSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerorg.opendof.tools.repository.interfaces.da.NotFoundExceptionjava.lang.Exceptionpublic java.lang.String getURLIdentifier(java.lang.String standardInterfaceID)
getURLIdentifier in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic java.lang.String getStandardIdentifier(java.lang.String urlInterfaceID)
getStandardIdentifier in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic boolean versionSupported()
versionSupported in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic java.util.List<java.lang.String> getTranslations()
getTranslations in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic org.opendof.tools.repository.interfaces.core.XMLTranslator getTranslator(java.lang.String translation)
throws java.lang.Exception
getTranslator in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic boolean hasAllocateSupport()
hasAllocateSupport in interface org.opendof.tools.repository.interfaces.core.PersistenceController