org.edg.security.voms.service.admin
Class VOMSAdminSoapBindingSkeleton

java.lang.Object
  |
  +--org.edg.security.voms.service.admin.VOMSAdminSoapBindingSkeleton
All Implemented Interfaces:
java.rmi.Remote, org.apache.axis.wsdl.Skeleton, VOMSAdmin

public class VOMSAdminSoapBindingSkeleton
extends java.lang.Object
implements VOMSAdmin, org.apache.axis.wsdl.Skeleton


Field Summary
private static java.util.Map _myOperations
           
private static java.util.Collection _myOperationsList
           
private  VOMSAdmin impl
           
 
Constructor Summary
VOMSAdminSoapBindingSkeleton()
           
VOMSAdminSoapBindingSkeleton(VOMSAdmin impl)
           
 
Method Summary
 void addACLEntry(java.lang.String container, ACLEntry aclEntry)
          Adds a new entry to the existing ACL.
 void addDefaultACLEntry(java.lang.String groupname, ACLEntry aclEntry)
          Manipulates the default ACL, which is applied on every group created in this one.
 void addMember(java.lang.String groupname, java.lang.String username, java.lang.String userca)
          Adds a new member to the group.
 void assignCapability(java.lang.String capability, java.lang.String username, java.lang.String userca)
          Assigns a new capability to the user.
 void assignRole(java.lang.String groupname, java.lang.String rolename, java.lang.String username, java.lang.String userca)
          Assigns a new role to the user.
 void createCapability(java.lang.String capability)
          Creates a new capability.
 void createGroup(java.lang.String parentname, java.lang.String groupname)
          Creates a new group inside an existing group.
 void createRole(java.lang.String rolename)
          Creates a new role.
 void createUser(User user)
          Creates a new user in the VOMS database.
 void deleteCapability(java.lang.String capability)
          Deletes a capability.
 void deleteGroup(java.lang.String groupname)
          Deletes a group.
 void deleteRole(java.lang.String rolename)
          Deletes a role.
 void deleteUser(java.lang.String username, java.lang.String userca)
          Removes a user from the VOMS database.
 void dismissCapability(java.lang.String capability, java.lang.String username, java.lang.String userca)
          Dismisses a capability of a user.
 void dismissRole(java.lang.String groupname, java.lang.String rolename, java.lang.String username, java.lang.String userca)
          Dismisses a role of a user.
 ACLEntry[] getACL(java.lang.String container)
          Returns the whole ACL associated with a container.
 ACLEntry[] getDefaultACL(java.lang.String groupname)
          Manipulates the default ACL, which is applied on every group created in this one.
 java.lang.String[] getGroupPath(java.lang.String groupname)
          Returns the absolute "path" down to this group.
 int getMajorVersionNumber()
          Returns the major version number.
 int getMinorVersionNumber()
          Returns the minor version number.
static java.util.List getOperationDescByName(java.lang.String methodName)
          Returns List of OperationDesc objects with this name
static java.util.Collection getOperationDescs()
          Returns Collection of OperationDescs
 int getPatchVersionNumber()
          Returns the patch version number.
 User getUser(java.lang.String username, java.lang.String userca)
          Returns information about a user in the VOMS database.
 java.lang.String getVOName()
          Return the name of this VO.
 java.lang.String[] listCapabilities()
          Lists capabilities.
 java.lang.String[] listCapabilities(java.lang.String username, java.lang.String userca)
          Lists capabilities of a user.
 java.lang.String[] listCAs()
          Lists certificate authorities.
 java.lang.String[] listGroups(java.lang.String username, java.lang.String userca)
          Lists groups of a user.
 User[] listMembers(java.lang.String groupname)
          Lists members of a group.
 java.lang.String[] listRoles()
          Lists roles.
 QualifiedRole[] listRoles(java.lang.String username, java.lang.String userca)
          Lists roles of a user.
 java.lang.String[] listSubGroups(java.lang.String groupname)
          Lists immediate sub-groups of a group.
 User[] listUsersWithCapability(java.lang.String capability)
          Lists assigned users of a capability.
 User[] listUsersWithRole(java.lang.String groupname, java.lang.String rolename)
          Lists assigned users of a role associated with a group.
 void removeACLEntry(java.lang.String container, ACLEntry aclEntry)
          Removes an existing entry from the ACL.
 void removeDefaultACLEntry(java.lang.String groupname, ACLEntry aclEntry)
          Manipulates the default ACL, which is applied on every group created in this one.
 void removeMember(java.lang.String groupname, java.lang.String username, java.lang.String userca)
          Removes a member of a group.
 void setACL(java.lang.String container, ACLEntry[] acl)
          Replaces the existing ACL on this container.
 void setDefaultACL(java.lang.String groupname, ACLEntry[] acl)
          Manipulates the default ACL, which is applied on every group created in this one.
 void setUser(User user)
          Updates auxiliary information about a user in the VOMS database.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

impl

private VOMSAdmin impl

_myOperations

private static java.util.Map _myOperations

_myOperationsList

private static java.util.Collection _myOperationsList
Constructor Detail

VOMSAdminSoapBindingSkeleton

public VOMSAdminSoapBindingSkeleton()

VOMSAdminSoapBindingSkeleton

public VOMSAdminSoapBindingSkeleton(VOMSAdmin impl)
Method Detail

getOperationDescByName

public static java.util.List getOperationDescByName(java.lang.String methodName)
Returns List of OperationDesc objects with this name


getOperationDescs

public static java.util.Collection getOperationDescs()
Returns Collection of OperationDescs


setUser

public void setUser(User user)
             throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Updates auxiliary information about a user in the VOMS database.

Permission: ADD on the VO group.

Specified by:
setUser in interface VOMSAdmin
Parameters:
user - the user to update
java.rmi.RemoteException

createGroup

public void createGroup(java.lang.String parentname,
                        java.lang.String groupname)
                 throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Creates a new group inside an existing group.
Permission: CREATE on parent
The method copies the default ACL list of the parent to the new group and adds an extra entry for the administrator with full privileges.

Specified by:
createGroup in interface VOMSAdmin
Parameters:
parentname - the parent group's name
groupname - the group's name
java.rmi.RemoteException

getUser

public User getUser(java.lang.String username,
                    java.lang.String userca)
             throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Returns information about a user in the VOMS database.

Permission: LIST on the VO group.

Specified by:
getUser in interface VOMSAdmin
Parameters:
username - the name of the user to look up
userca - the certificate authority of the user
Returns:
All information about the user that is known to VOMS.
java.rmi.RemoteException

createUser

public void createUser(User user)
                throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Creates a new user in the VOMS database.
Permission: ADD on the VO

Specified by:
createUser in interface VOMSAdmin
Parameters:
user - the user to be added
java.rmi.RemoteException

deleteUser

public void deleteUser(java.lang.String username,
                       java.lang.String userca)
                throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Removes a user from the VOMS database.
Permission: REMOVE on VO
It deletes all the associated group, role membership information and coresponding ACL entries as well.
It is basically a call to removeMember(VO, user).

Specified by:
deleteUser in interface VOMSAdmin
Parameters:
username - the user's DN
userca - the user's CA
java.rmi.RemoteException
See Also:
VOMSAdmin.removeMember(java.lang.String, java.lang.String, java.lang.String)

deleteGroup

public void deleteGroup(java.lang.String groupname)
                 throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Deletes a group.
Permission: DELETE on group
The operation deletes the group, all of its sub-groups and associated roles with all the membership information.
Warning: Deleting the VO "group" effectively wipes out the whole database, so use with care!

Specified by:
deleteGroup in interface VOMSAdmin
Parameters:
groupname - the group's name
java.rmi.RemoteException

createRole

public void createRole(java.lang.String rolename)
                throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Creates a new role.
Permission: CREATE on VO
The method copies the default ACL list of the parent to the new role and adds an extra entry for the administrator with full privileges.

Specified by:
createRole in interface VOMSAdmin
Parameters:
rolename - the role to be added
java.rmi.RemoteException

deleteRole

public void deleteRole(java.lang.String rolename)
                throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Deletes a role.
Permission: DELETE on role
The operation deletes the role with all the membership information.

Specified by:
deleteRole in interface VOMSAdmin
Parameters:
rolename - the role to be deleted
java.rmi.RemoteException

createCapability

public void createCapability(java.lang.String capability)
                      throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Creates a new capability.
Permission: CREATE on VO
The method copies the default ACL list of the VO to the new capability and adds an extra entry for the administrator with full privileges.

Specified by:
createCapability in interface VOMSAdmin
Parameters:
capability - the capability to be created
java.rmi.RemoteException

deleteCapability

public void deleteCapability(java.lang.String capability)
                      throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Deletes a capability.
Permission: DELETE on capability
The operation deletes the capability with all the membership information.

Specified by:
deleteCapability in interface VOMSAdmin
Parameters:
capability - the capability to be deleted
java.rmi.RemoteException

addMember

public void addMember(java.lang.String groupname,
                      java.lang.String username,
                      java.lang.String userca)
               throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Adds a new member to the group.
Permission: ADD on group
The user must be a member of the parent group.

Specified by:
addMember in interface VOMSAdmin
Parameters:
groupname - the group's name
username - the user's DN
userca - the user's CA
java.rmi.RemoteException

removeMember

public void removeMember(java.lang.String groupname,
                         java.lang.String username,
                         java.lang.String userca)
                  throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Removes a member of a group.
Permission: REMOVE on group
Also removes the membership information from the group's sub-groups and associated roles of these groups. If it is the VO group, then it will also delete the user with all its ACL entries.

Specified by:
removeMember in interface VOMSAdmin
Parameters:
groupname - the group's name
username - the user's DN
userca - the user's CA
java.rmi.RemoteException
See Also:
VOMSAdmin.deleteUser(java.lang.String, java.lang.String)

assignRole

public void assignRole(java.lang.String groupname,
                       java.lang.String rolename,
                       java.lang.String username,
                       java.lang.String userca)
                throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Assigns a new role to the user.
Permission: ADD on role
The user must be a member of the parent group.

Specified by:
assignRole in interface VOMSAdmin
Parameters:
groupname - the name of the group associated with this assignment
rolename - the role's name
username - the name of the user to add
userca - the CA of the user to add
java.rmi.RemoteException

dismissRole

public void dismissRole(java.lang.String groupname,
                        java.lang.String rolename,
                        java.lang.String username,
                        java.lang.String userca)
                 throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Dismisses a role of a user.
Permission: REMOVE on role

Specified by:
dismissRole in interface VOMSAdmin
Parameters:
groupname - the parent group's name
rolename - the role's name
username - the user's DN
userca - the user's CA
java.rmi.RemoteException

assignCapability

public void assignCapability(java.lang.String capability,
                             java.lang.String username,
                             java.lang.String userca)
                      throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Assigns a new capability to the user.
Permission: ADD on capability

Specified by:
assignCapability in interface VOMSAdmin
Parameters:
capability - the capability's name
username - the user's DN
userca - the user's CA
java.rmi.RemoteException

dismissCapability

public void dismissCapability(java.lang.String capability,
                              java.lang.String username,
                              java.lang.String userca)
                       throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Dismisses a capability of a user.
Permission: REMOVE on capability

Specified by:
dismissCapability in interface VOMSAdmin
Parameters:
capability - the capability's name
username - the user's DN
userca - the user's CA
java.rmi.RemoteException

listMembers

public User[] listMembers(java.lang.String groupname)
                   throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists members of a group.
Permission:LIST on group

Specified by:
listMembers in interface VOMSAdmin
Parameters:
groupname - the group's name (null is the VO group)
Returns:
list of users in this group
java.rmi.RemoteException

listUsersWithRole

public User[] listUsersWithRole(java.lang.String groupname,
                                java.lang.String rolename)
                         throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists assigned users of a role associated with a group.
Permission:LIST on role

Specified by:
listUsersWithRole in interface VOMSAdmin
Parameters:
groupname - the group's name
rolename - the role's name
Returns:
list of users for this role
java.rmi.RemoteException

listUsersWithCapability

public User[] listUsersWithCapability(java.lang.String capability)
                               throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists assigned users of a capability.
Permission:LIST on capability

Specified by:
listUsersWithCapability in interface VOMSAdmin
Parameters:
capability - the capability's name
Returns:
list of users for this capability
java.rmi.RemoteException

getVOName

public java.lang.String getVOName()
                           throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Return the name of this VO.
Permission:LIST on VO

Specified by:
getVOName in interface VOMSAdmin
Returns:
the name of this VO
java.rmi.RemoteException

getGroupPath

public java.lang.String[] getGroupPath(java.lang.String groupname)
                                throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Returns the absolute "path" down to this group. The first element is the VO group and the last is the group itself. There is at least one element in this path if the group exists: the VO group.
Permission:LIST on parent groups

Specified by:
getGroupPath in interface VOMSAdmin
Parameters:
groupname - the group's name (null is the VO group)
Returns:
path to the group
java.rmi.RemoteException

listSubGroups

public java.lang.String[] listSubGroups(java.lang.String groupname)
                                 throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists immediate sub-groups of a group.
Permission:LIST on group

Specified by:
listSubGroups in interface VOMSAdmin
Parameters:
groupname - the group's name (null is the VO group)
Returns:
list of groups in this group
java.rmi.RemoteException

listGroups

public java.lang.String[] listGroups(java.lang.String username,
                                     java.lang.String userca)
                              throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists groups of a user.
Permission:LIST on groups

Specified by:
listGroups in interface VOMSAdmin
Parameters:
username - the user's DN
userca - the user's CA
Returns:
list of groups in this group
java.rmi.RemoteException

listRoles

public java.lang.String[] listRoles()
                             throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists roles.
Permission:LIST on group

Specified by:
listRoles in interface VOMSAdmin
Returns:
list of roles in this VO
java.rmi.RemoteException

listRoles

public QualifiedRole[] listRoles(java.lang.String username,
                                 java.lang.String userca)
                          throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists roles of a user.
Permission:LIST on groups

Specified by:
listRoles in interface VOMSAdmin
Parameters:
username - the user's DN
userca - the user's CA
Returns:
list of roles in this group
java.rmi.RemoteException

listCapabilities

public java.lang.String[] listCapabilities()
                                    throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists capabilities.
Permission:LIST on VO

Specified by:
listCapabilities in interface VOMSAdmin
Returns:
list of capabilities
java.rmi.RemoteException

listCapabilities

public java.lang.String[] listCapabilities(java.lang.String username,
                                           java.lang.String userca)
                                    throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists capabilities of a user.
Permission:LIST on VO

Specified by:
listCapabilities in interface VOMSAdmin
Parameters:
username - the user's DN
userca - the user's CA
Returns:
list of capabilities
java.rmi.RemoteException

listCAs

public java.lang.String[] listCAs()
                           throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Lists certificate authorities.
Permission:LIST on VO

Specified by:
listCAs in interface VOMSAdmin
Returns:
list of certificate authority DNs
java.rmi.RemoteException

getACL

public ACLEntry[] getACL(java.lang.String container)
                  throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Returns the whole ACL associated with a container.
Permission: GETACL on container.

Specified by:
getACL in interface VOMSAdmin
Parameters:
container - the container's name (null is the VO group)
Returns:
access control list
java.rmi.RemoteException

setACL

public void setACL(java.lang.String container,
                   ACLEntry[] acl)
            throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Replaces the existing ACL on this container.
        pre:    exists id[container]
                setACL ACL on the container.
 

Specified by:
setACL in interface VOMSAdmin
Parameters:
container - the container's name
acl - access control list
java.rmi.RemoteException

addACLEntry

public void addACLEntry(java.lang.String container,
                        ACLEntry aclEntry)
                 throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Adds a new entry to the existing ACL.
        pre:    exists id[container]
            op is valid
            exists id[principal]
            (aclid[container], principal, op) !\in acl
        post:
            insert into acl (aclid[container], principal, op, allow, ...);
 

Specified by:
addACLEntry in interface VOMSAdmin
Parameters:
container - the container's name
aclEntry - access control list entry
java.rmi.RemoteException

removeACLEntry

public void removeACLEntry(java.lang.String container,
                           ACLEntry aclEntry)
                    throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Removes an existing entry from the ACL.
        pre:    exists id[container]
            exists id[principal]
            exists acl[aclid[id[container]], id[principal], op]
        post:
            delete from acl where aclid = aclid[id[container]]
                    and principal = id[principal]
                    and operation = op;

 

Specified by:
removeACLEntry in interface VOMSAdmin
Parameters:
container - the container's name
aclEntry - access control list entry
java.rmi.RemoteException

getDefaultACL

public ACLEntry[] getDefaultACL(java.lang.String groupname)
                         throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Manipulates the default ACL, which is applied on every group created in this one.

Specified by:
getDefaultACL in interface VOMSAdmin
Parameters:
groupname - the group's name
Returns:
access control list
java.rmi.RemoteException
See Also:
VOMSAdmin.getACL(java.lang.String)

setDefaultACL

public void setDefaultACL(java.lang.String groupname,
                          ACLEntry[] acl)
                   throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Manipulates the default ACL, which is applied on every group created in this one.

Specified by:
setDefaultACL in interface VOMSAdmin
Parameters:
groupname - the group's name
acl - access control list entry
java.rmi.RemoteException
See Also:
VOMSAdmin.setDefaultACL(java.lang.String, org.edg.security.voms.service.ACLEntry[])

addDefaultACLEntry

public void addDefaultACLEntry(java.lang.String groupname,
                               ACLEntry aclEntry)
                        throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Manipulates the default ACL, which is applied on every group created in this one.

Specified by:
addDefaultACLEntry in interface VOMSAdmin
Parameters:
groupname - the group's name
aclEntry - access control list entry
java.rmi.RemoteException
See Also:
VOMSAdmin.addDefaultACLEntry(java.lang.String, org.edg.security.voms.service.ACLEntry)

removeDefaultACLEntry

public void removeDefaultACLEntry(java.lang.String groupname,
                                  ACLEntry aclEntry)
                           throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Manipulates the default ACL, which is applied on every group created in this one.

Specified by:
removeDefaultACLEntry in interface VOMSAdmin
Parameters:
groupname - the group's name
aclEntry - access control list entry
java.rmi.RemoteException
See Also:
VOMSAdmin.removeDefaultACLEntry(java.lang.String, org.edg.security.voms.service.ACLEntry)

getMajorVersionNumber

public int getMajorVersionNumber()
                          throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Returns the major version number.

Specified by:
getMajorVersionNumber in interface VOMSAdmin
java.rmi.RemoteException

getMinorVersionNumber

public int getMinorVersionNumber()
                          throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Returns the minor version number.

Specified by:
getMinorVersionNumber in interface VOMSAdmin
java.rmi.RemoteException

getPatchVersionNumber

public int getPatchVersionNumber()
                          throws java.rmi.RemoteException
Description copied from interface: VOMSAdmin
Returns the patch version number.

Specified by:
getPatchVersionNumber in interface VOMSAdmin
java.rmi.RemoteException