Class SecurityControllerImpl
- java.lang.Object
-
- ubic.gemma.web.controller.common.auditAndSecurity.SecurityControllerImpl
-
- All Implemented Interfaces:
SecurityController
@Component public class SecurityControllerImpl extends Object implements SecurityController
Manages data-level security (ie. can make data private).
-
-
Constructor Summary
Constructors Constructor Description SecurityControllerImpl()
-
Method Summary
-
-
-
Method Detail
-
addUserToGroup
public boolean addUserToGroup(String userName, String groupName)
- Specified by:
addUserToGroup
in interfaceSecurityController
-
createGroup
public String createGroup(String groupName)
- Specified by:
createGroup
in interfaceSecurityController
-
deleteGroup
public void deleteGroup(String groupName)
Description copied from interface:SecurityController
AJAX- Specified by:
deleteGroup
in interfaceSecurityController
- Parameters:
groupName
- group name
-
getAuthenticatedUserCount
public Integer getAuthenticatedUserCount()
- Specified by:
getAuthenticatedUserCount
in interfaceSecurityController
-
getAuthenticatedUserNames
public Collection<String> getAuthenticatedUserNames()
- Specified by:
getAuthenticatedUserNames
in interfaceSecurityController
-
getAvailableGroups
public Collection<UserGroupValueObject> getAvailableGroups()
Description copied from interface:SecurityController
AJAX- Specified by:
getAvailableGroups
in interfaceSecurityController
- Returns:
- List of group names the user can add members to and/or give permissions on objects to.
-
getAvailablePrincipalSids
public Collection<SidValueObject> getAvailablePrincipalSids()
Description copied from interface:SecurityController
Return a list of principals that is users- Specified by:
getAvailablePrincipalSids
in interfaceSecurityController
- Returns:
- SidValueObjects
-
getAvailableSids
public Collection<SidValueObject> getAvailableSids()
Description copied from interface:SecurityController
AJAX, but administrator-only!- Specified by:
getAvailableSids
in interfaceSecurityController
- Returns:
- SID VOs
-
getGroupMembers
public Collection<UserValueObject> getGroupMembers(String groupName)
- Specified by:
getGroupMembers
in interfaceSecurityController
-
getSecurityInfo
public SecurityInfoValueObject getSecurityInfo(EntityDelegator ed)
- Specified by:
getSecurityInfo
in interfaceSecurityController
-
getUsersData
public Collection<SecurityInfoValueObject> getUsersData(String currentGroup, boolean privateOnly)
Description copied from interface:SecurityController
AJAX- Specified by:
getUsersData
in interfaceSecurityController
- Parameters:
currentGroup
- A specific group that we're focusing on. Can be null. Used to populate client-side checkboxes to show permissions.privateOnly
- Only show data that are private (non-publicly readable); otherwise show all the data for the user. This option is probably of most use to administrators.- Returns:
- security info VO
-
makeGroupReadable
public boolean makeGroupReadable(EntityDelegator ed, String groupName)
- Specified by:
makeGroupReadable
in interfaceSecurityController
-
makeGroupWriteable
public boolean makeGroupWriteable(EntityDelegator ed, String groupName)
- Specified by:
makeGroupWriteable
in interfaceSecurityController
-
makePrivate
public boolean makePrivate(EntityDelegator ed)
- Specified by:
makePrivate
in interfaceSecurityController
-
makePublic
public boolean makePublic(EntityDelegator ed)
- Specified by:
makePublic
in interfaceSecurityController
-
removeGroupReadable
public boolean removeGroupReadable(EntityDelegator ed, String groupName)
- Specified by:
removeGroupReadable
in interfaceSecurityController
-
removeGroupWriteable
public boolean removeGroupWriteable(EntityDelegator ed, String groupName)
- Specified by:
removeGroupWriteable
in interfaceSecurityController
-
removeUsersFromGroup
public boolean removeUsersFromGroup(String[] userNames, String groupName)
- Specified by:
removeUsersFromGroup
in interfaceSecurityController
-
setExpressionExperimentService
public void setExpressionExperimentService(ubic.gemma.persistence.service.expression.experiment.ExpressionExperimentService expressionExperimentService)
- Specified by:
setExpressionExperimentService
in interfaceSecurityController
-
updatePermission
public SecurityInfoValueObject updatePermission(SecurityInfoValueObject settings)
- Specified by:
updatePermission
in interfaceSecurityController
-
updatePermissions
public void updatePermissions(SecurityInfoValueObject[] settings)
- Specified by:
updatePermissions
in interfaceSecurityController
-
-