public class OpendofController
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 |
|---|
OpendofController()
OpendofController 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() |
static java.lang.String |
dofUriToStandardForm(java.lang.String uri)
Looks for
DofUriBase anywhere in the given uri and replaces
it in place with DOFInterfaceID.toStandardForm if found. |
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 standardIterfaceID) |
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 |
synch(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user) |
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 OpendofController()
public void destroy()
destroy in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerpublic 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 static java.lang.String dofUriToStandardForm(java.lang.String uri)
DofUriBase anywhere in the given uri and replaces
it in place with DOFInterfaceID.toStandardForm if found.uri - to be convertedpublic 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 void deleteInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version)
throws java.lang.Exception
deleteInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic void publishInterface(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user,
java.lang.String iid,
java.lang.String version)
throws java.lang.Exception
publishInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.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 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 java.lang.Exception
updateInterface 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 java.lang.Exception
addInterface in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic org.opendof.tools.repository.interfaces.da.SubRepositoryNode getSubRepositoryNode(java.lang.String repoType,
java.lang.String rdn)
throws java.lang.Exception
getSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.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 java.lang.Exception
addSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.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 java.lang.Exception
deleteSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.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 java.lang.Exception
updateSubRepositoryNode in interface org.opendof.tools.repository.interfaces.core.PersistenceControllerjava.lang.Exceptionpublic java.lang.String getURLIdentifier(java.lang.String standardIterfaceID)
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.PersistenceControllerpublic void synch(org.opendof.tools.repository.interfaces.core.AuthenticatedUser user)
throws java.lang.Exception
user - with rights for the synch call.java.lang.Exception - if the synch could not be performed