Package org.dspace.administer
Class CommunityFiliator
java.lang.Object
org.dspace.administer.CommunityFiliator
A command-line tool for setting/removing community/sub-community
relationships. Takes community DB Id or handle arguments as inputs.
- Version:
- $Revision$
- Author:
- rrodgers
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
communityService
-
handleService
-
-
Constructor Details
-
CommunityFiliator
public CommunityFiliator()
-
-
Method Details
-
main
- Parameters:
argv- the command line arguments given- Throws:
Exception- if error
-
filiate
public void filiate(Context c, Community parent, Community child) throws SQLException, AuthorizeException, IOException - Parameters:
c- contextparent- parent Communitychild- child community- Throws:
SQLException- if database errorAuthorizeException- if authorize errorIOException- if IO error
-
defiliate
public void defiliate(Context c, Community parent, Community child) throws SQLException, AuthorizeException, IOException - Parameters:
c- contextparent- parent Communitychild- child community- Throws:
SQLException- if database errorAuthorizeException- if authorize errorIOException- if IO error
-
resolveCommunity
Find a community by ID- Parameters:
c- contextcommunityID- community ID- Returns:
- Community object
- Throws:
SQLException- if database error
-