📄 i_cmsresourcebroker.java
字号:
*
* @throws CmsException Throws CmsException if operation was not succesful
*/
public void deleteProperty(CmsUser currentUser, CmsProject currentProject,
String resource, String property)
throws CmsException;
/**
* Delete the propertydefinition for the resource type.<BR/>
*
* <B>Security</B>
* Only the admin can do this.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param name The name of the propertydefinition to read.
* @param resourcetype The name of the resource type for which the
* propertydefinition is valid.
*
* @throws CmsException Throws CmsException if something goes wrong.
*/
public void deletePropertydefinition(CmsUser currentUser, CmsProject currentProject,
String name, String resourcetype)
throws CmsException;
/**
* Deletes a user from the Cms.
*
* Only a adminstrator can do this.<P/>
*
* <B>Security:</B>
* Only users, which are in the group "administrators" are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param userId The Id of the user to be deleted.
*
* @throws CmsException Throws CmsException if operation was not succesfull.
*/
public void deleteUser(CmsUser currentUser, CmsProject currentProject,
int userId)
throws CmsException;
/**
* Deletes a user from the Cms.
*
* Only a adminstrator can do this.<P/>
*
* <B>Security:</B>
* Only users, which are in the group "administrators" are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param name The name of the user to be deleted.
*
* @throws CmsException Throws CmsException if operation was not succesfull.
*/
public void deleteUser(CmsUser currentUser, CmsProject currentProject,
String username)
throws CmsException;
/**
* Deletes a web user from the Cms.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param userId The Id of the user to be deleted.
*
* @throws CmsException Throws CmsException if operation was not succesfull.
*/
public void deleteWebUser(CmsUser currentUser, CmsProject currentProject,
int userId)
throws CmsException;
/**
* Destroys the resource borker and required modules and connections.
* @throws CmsException Throws CmsException if something goes wrong.
*/
public void destroy()
throws CmsException;
/**
* Ends a task from the Cms.
*
* <B>Security:</B>
* All users are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param taskid The ID of the task to end.
*
* @throws CmsException Throws CmsException if something goes wrong.
*/
public void endTask(CmsUser currentUser, CmsProject currentProject, int taskid)
throws CmsException;
/**
* Exports cms-resources to zip.
*
* <B>Security:</B>
* only Administrators can do this;
*
* @param currentUser user who requestd themethod
* @param currentProject current project of the user
* @param exportFile the name (absolute Path) of the export resource (zip)
* @param exportPaths the name (absolute Path) of folders from which should be exported
* @param cms the cms-object to use for the export.
*
* @throws Throws CmsException if something goes wrong.
*/
public void exportResources(CmsUser currentUser, CmsProject currentProject, String exportFile, String[] exportPaths, CmsObject cms)
throws CmsException;
/**
* Exports cms-resources to zip.
*
* <B>Security:</B>
* only Administrators can do this;
*
* @param currentUser user who requestd themethod
* @param currentProject current project of the user
* @param exportFile the name (absolute Path) of the export resource (zip)
* @param exportPaths the name (absolute Path) of folders from which should be exported
* @param includeSystem, desides if to include the system resources to the export.
* @param excludeUnchanged <code>true</code>, if unchanged files should be excluded.
* @param cms the cms-object to use for the export.
*
* @throws Throws CmsException if something goes wrong.
*/
public void exportResources(CmsUser currentUser, CmsProject currentProject, String exportFile, String[] exportPaths, CmsObject cms, boolean includeSystem, boolean excludeUnchanged)
throws CmsException;
/**
* Exports cms-resources to zip.
*
* <B>Security:</B>
* only Administrators can do this;
*
* @param currentUser user who requestd themethod
* @param currentProject current project of the user
* @param exportFile the name (absolute Path) of the export resource (zip)
* @param exportPaths the name (absolute Path) of folders from which should be exported
* @param cms the cms-object to use for the export.
* @param includeSystem, desides if to include the system resources to the export.
* @param excludeUnchanged <code>true</code>, if unchanged files should be excluded.
* @param contentAge Max age of content to be exported (timestamp)
* @param report the cmsReport to handle the log messages.
*
* @throws Throws CmsException if something goes wrong.
*/
public void exportResources(CmsUser currentUser, CmsProject currentProject, String exportFile, String[] exportPaths, CmsObject cms, boolean includeSystem, boolean excludeUnchanged, boolean exportUserdata, long contentAge, I_CmsReport report)
throws CmsException;
/**
* Exports channels and moduledata to zip.
*
* <B>Security:</B>
* only Administrators can do this;
*
* @param currentUser user who requestd themethod
* @param currentProject current project of the user
* @param exportFile the name (absolute Path) of the export resource (zip)
* @param exportChannels the names (absolute Path) of channels from which should be exported
* @param exportModules the names of modules from which should be exported
* @param cms the cms-object to use for the export.
*
* @throws Throws CmsException if something goes wrong.
*/
public void exportModuledata(CmsUser currentUser, CmsProject currentProject, String exportFile, String[] exportChannels, String[] exportModules, CmsObject cms, I_CmsReport report)
throws CmsException;
/**
* Creates a static export of a Cmsresource in the filesystem
*
* @param currentUser user who requestd themethod
* @param currentProject current project of the user
* @param cms the cms-object to use for the export.
* @param startpoints the startpoints for the export.
* @param report the cmsReport to handle the log messages.
*
* @throws CmsException if operation was not successful.
*/
public void exportStaticResources(CmsUser currentUser, CmsProject currentProject,
CmsObject cms, Vector startpoints, Vector projectResources, Vector allExportedLinks,
CmsPublishedResources changedResources, I_CmsReport report) throws CmsException ;
/**
* Creates a static export in the filesystem. This method is used only
* on a slave system in a cluster. The Vector is generated in the static export
* on the master system (in the Vector allExportdLinks), so in this method the
* database must not be updated.
*
* @param currentUser user who requestd themethod
* @param currentProject current project of the user
* @param cms the cms-object to use for the export.
* @param linksToExport all links that where exported by the master OpenCms.
*
* @throws CmsException if operation was not successful.
*/
public void exportStaticResources(CmsUser currentUser, CmsProject currentProject,
CmsObject cms, Vector linksToExport) throws CmsException ;
/**
* Forwards a task to a new user.
*
* <B>Security:</B>
* All users are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param taskid The Id of the task to forward.
* @param newRole The new Group for the task
* @param newUser The new user who gets the task.
*
* @throws CmsException Throws CmsException if something goes wrong.
*/
public void forwardTask(CmsUser currentUser, CmsProject currentProject, int taskid,
String newRoleName, String newUserName)
throws CmsException;
/**
* Returns all projects, which are owned by the user or which are accessible
* for the group of the user.
*
* <B>Security</B>
* All users are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
*
* @return a Vector of projects.
*/
public Vector getAllAccessibleProjects(CmsUser currentUser,
CmsProject currentProject)
throws CmsException;
/**
* Returns all projects, which are owned by the user or which are manageable
* for the group of the user.
*
* <B>Security</B>
* All users are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
*
* @return a Vector of projects.
*/
public Vector getAllManageableProjects(CmsUser currentUser,
CmsProject currentProject)
throws CmsException;
/**
* Returns a Vector with all projects from history
*
* @return Vector with all projects from history.
*
* @throws CmsException Throws CmsException if operation was not succesful.
*/
public Vector getAllBackupProjects() throws CmsException;
/**
* Returns a Vector with all export links
*
* @return Vector (Strings) with all export links.
*
* @throws CmsException Throws CmsException if operation was not succesful.
*/
public Vector getAllExportLinks() throws CmsException;
/**
* Returns a Vector with all I_CmsResourceTypes.
*
* <B>Security:</B>
* All users are granted.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
*
* Returns a Hashtable with all I_CmsResourceTypes.
*
* @throws CmsException Throws CmsException if operation was not succesful.
*/
public Hashtable getAllResourceTypes(CmsUser currentUser,
CmsProject currentProject)
throws CmsException;
/**
* Returns informations about the cache.
*
* @return a hashtable with informations about the cache.
*/
public Hashtable getCacheInfo();
/**
* Returns all child groups of a group<P/>
*
* <B>Security:</B>
* All users are granted, except the anonymous user.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param groupname The name of the group.
* @return groups A Vector of all child groups or null.
* @throws CmsException Throws CmsException if operation was not succesful.
*/
public Vector getChild(CmsUser currentUser, CmsProject currentProject,
String groupname)
throws CmsException ;
/**
* Returns all child groups of a group<P/>
* This method also returns all sub-child groups of the current group.
*
* <B>Security:</B>
* All users are granted, except the anonymous user.
*
* @param currentUser The user who requested this method.
* @param currentProject The current project of the user.
* @param groupname The name of the group.
* @return groups A Vector of all child groups or null.
* @throws CmsException Throws CmsException if operation was not succesful.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -