@Component public class SecurityControllerImpl extends Object implements SecurityController
Constructor and Description |
---|
SecurityControllerImpl() |
public boolean addUserToGroup(String userName, String groupName)
addUserToGroup
in interface SecurityController
public String createGroup(String groupName)
createGroup
in interface SecurityController
public void deleteGroup(String groupName)
SecurityController
deleteGroup
in interface SecurityController
groupName
- group namepublic Integer getAuthenticatedUserCount()
getAuthenticatedUserCount
in interface SecurityController
public Collection<String> getAuthenticatedUserNames()
getAuthenticatedUserNames
in interface SecurityController
public Collection<UserGroupValueObject> getAvailableGroups()
SecurityController
getAvailableGroups
in interface SecurityController
public Collection<SidValueObject> getAvailablePrincipalSids()
SecurityController
getAvailablePrincipalSids
in interface SecurityController
public Collection<SidValueObject> getAvailableSids()
SecurityController
getAvailableSids
in interface SecurityController
public Collection<UserValueObject> getGroupMembers(String groupName)
getGroupMembers
in interface SecurityController
public SecurityInfoValueObject getSecurityInfo(EntityDelegator ed)
getSecurityInfo
in interface SecurityController
public Collection<SecurityInfoValueObject> getUsersData(String currentGroup, boolean privateOnly)
SecurityController
getUsersData
in interface SecurityController
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.public boolean makeGroupReadable(EntityDelegator ed, String groupName)
makeGroupReadable
in interface SecurityController
public boolean makeGroupWriteable(EntityDelegator ed, String groupName)
makeGroupWriteable
in interface SecurityController
public boolean makePrivate(EntityDelegator ed)
makePrivate
in interface SecurityController
public boolean makePublic(EntityDelegator ed)
makePublic
in interface SecurityController
public boolean removeGroupReadable(EntityDelegator ed, String groupName)
removeGroupReadable
in interface SecurityController
public boolean removeGroupWriteable(EntityDelegator ed, String groupName)
removeGroupWriteable
in interface SecurityController
public boolean removeUsersFromGroup(String[] userNames, String groupName)
removeUsersFromGroup
in interface SecurityController
public void setExpressionExperimentService(ExpressionExperimentService expressionExperimentService)
setExpressionExperimentService
in interface SecurityController
public SecurityInfoValueObject updatePermission(SecurityInfoValueObject settings)
updatePermission
in interface SecurityController
public void updatePermissions(SecurityInfoValueObject[] settings)
updatePermissions
in interface SecurityController
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.