|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.astrogrid.community.client.delegate.AdministrationDelegate
The AdministrationDelegate is the gateway to the webservice, having mappped methods to the webservice methods. This particular class deals with administration piece of the community. Many webservice methods are requred for administration such as inserting permissions, resources, accounts, groups and others.
| Constructor Summary | |
AdministrationDelegate()
Public constructor deals with getting our service (link) to the webservice. |
|
| Method Summary | |
org.astrogrid.community.common.policy.data.AccountData |
addAccount(java.lang.String name)
Adds an account. |
org.astrogrid.community.common.policy.data.GroupData |
addGroup(java.lang.String ident)
Add a group. |
boolean |
addGroupMember(java.lang.String account,
java.lang.String group)
Adds a user/account to a particular MULTI group. |
org.astrogrid.community.common.policy.data.PolicyPermission |
addPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
Creates a new permission in the database tying a resource to a group for a specefic action. |
org.astrogrid.community.common.policy.data.ResourceData |
addResource(java.lang.String name)
Adds a resource. |
boolean |
delAccount(java.lang.String name)
Deletes an account. |
boolean |
delGroup(java.lang.String ident)
Delete a group. |
boolean |
delGroupMember(java.lang.String account,
java.lang.String group)
Deletes a user from a group. |
boolean |
delPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
Deletes a permission from teh database. |
org.astrogrid.community.common.policy.data.ResourceData |
delResource(java.lang.String name)
Deletes a resource. |
org.astrogrid.community.common.policy.data.AccountData |
getAccount(java.lang.String name)
Get an Account object which consists of a name, and description. |
java.util.ArrayList |
getAccountList()
Deprecated. because getRemoteAccounts using the local url, would get the same results. |
org.astrogrid.community.common.policy.data.GroupData |
getGroup(java.lang.String ident)
Get a group. |
java.util.ArrayList |
getGroupList()
Deprecated. |
java.util.ArrayList |
getGroupMembers(java.lang.String group)
Get a community list. |
org.astrogrid.community.common.policy.data.ResourceData |
getResource(java.lang.String name)
Returns a resource information. |
java.util.ArrayList |
getResourceList()
Returna an array of ResourceData objects. |
org.astrogrid.community.common.policy.data.AccountData |
setAccount(org.astrogrid.community.common.policy.data.AccountData ad)
Updates an account. |
org.astrogrid.community.common.policy.data.GroupData |
setGroup(org.astrogrid.community.common.policy.data.GroupData groupData)
Update a group. |
org.astrogrid.community.common.policy.data.ResourceData |
setResource(org.astrogrid.community.common.policy.data.ResourceData ad)
Update a resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public AdministrationDelegate()
| Method Detail |
public org.astrogrid.community.common.policy.data.PolicyPermission addPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
throws java.lang.Exception
resource - group - action -
java.lang.Exception
public boolean delPermission(java.lang.String resource,
java.lang.String group,
java.lang.String action)
throws java.lang.Exception
resource - group - action -
java.lang.Exception
public boolean addGroupMember(java.lang.String account,
java.lang.String group)
throws java.lang.Exception
account - group -
java.lang.Exception
public boolean delGroupMember(java.lang.String account,
java.lang.String group)
throws java.lang.Exception
account - group -
java.lang.Exception
public org.astrogrid.community.common.policy.data.AccountData addAccount(java.lang.String name)
throws java.lang.Exception
name -
java.lang.Exception
public boolean delAccount(java.lang.String name)
throws java.lang.Exception
name -
java.lang.Exception
public org.astrogrid.community.common.policy.data.AccountData getAccount(java.lang.String name)
throws java.lang.Exception
name -
java.lang.Exceptionorg.astrogrid.community.policy.data.AccountData
public java.util.ArrayList getAccountList()
throws java.lang.Exception
java.lang.Exception
public org.astrogrid.community.common.policy.data.AccountData setAccount(org.astrogrid.community.common.policy.data.AccountData ad)
throws java.lang.Exception
ad -
java.lang.Exception
public org.astrogrid.community.common.policy.data.ResourceData addResource(java.lang.String name)
throws java.lang.Exception
name -
java.lang.Exception
public org.astrogrid.community.common.policy.data.ResourceData delResource(java.lang.String name)
throws java.lang.Exception
name -
java.lang.Exception
public org.astrogrid.community.common.policy.data.ResourceData getResource(java.lang.String name)
throws java.lang.Exception
name -
java.lang.Exceptionorg.astrogrid.community.policy.data.ResourceData
public java.util.ArrayList getResourceList()
throws java.lang.Exception
java.lang.Exception
public org.astrogrid.community.common.policy.data.ResourceData setResource(org.astrogrid.community.common.policy.data.ResourceData ad)
throws java.lang.Exception
ad -
java.lang.Exception
public java.util.ArrayList getGroupList()
throws java.lang.Exception
java.lang.Exception
public boolean delGroup(java.lang.String ident)
throws java.lang.Exception
ident -
java.lang.Exception
public org.astrogrid.community.common.policy.data.GroupData addGroup(java.lang.String ident)
throws java.lang.Exception
ident -
java.lang.Exception
public org.astrogrid.community.common.policy.data.GroupData getGroup(java.lang.String ident)
throws java.lang.Exception
ident -
java.lang.Exception
public org.astrogrid.community.common.policy.data.GroupData setGroup(org.astrogrid.community.common.policy.data.GroupData groupData)
throws java.lang.Exception
groupData -
java.lang.Exception
public java.util.ArrayList getGroupMembers(java.lang.String group)
throws java.lang.Exception
java.lang.Exception - public ArrayList getCommunityList() throws Exception {
return createArrayList(service.getCommunityList());
}
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||