@Test public void testClear() { repositoryObjectAcls.addAcl( new UIRepositoryObjectAcl( createUserAce( USER1 ) ) ); repositoryObjectAcls.addAcl( new UIRepositoryObjectAcl( createRoleAce( ROLE1 ) ) ); repositoryObjectAclModel.setAclsList( defaultUserNameList, defaultRoleNameList ); repositoryObjectAclModel.assignRoles( Arrays.asList( new Object[] { ROLE2 } ) ); repositoryObjectAclModel.assignUsers( Arrays.asList( new Object[] { USER2 } ) ); repositoryObjectAclModel.clear(); assertEquals( 0, repositoryObjectAclModel.getAvailableUserList().size() ); assertEquals( 0, repositoryObjectAclModel.getAvailableRoleList().size() ); assertEquals( 0, repositoryObjectAclModel.getSelectedAssignedUsers().size() ); assertEquals( 0, repositoryObjectAclModel.getSelectedAssignedRoles().size() ); assertEquals( 0, repositoryObjectAclModel.getSelectedAvailableUsers().size() ); assertEquals( 0, repositoryObjectAclModel.getSelectedAvailableRoles().size() ); assertEquals( 1, repositoryObjectAclModel.getSelectedUserList().size() ); assertEquals( 1, repositoryObjectAclModel.getSelectedRoleList().size() ); }
public void clear() { aclsToAdd.clear(); aclsToRemove.clear(); masterAvailableRoleList.clear(); masterAvailableUserList.clear(); availableRoleList.clear(); availableUserList.clear(); selectedAvailableRoles.clear(); selectedAvailableUsers.clear(); selectedAssignedRoles.clear(); selectedAssignedUsers.clear(); setRoleAssignmentPossible( false ); setRoleUnassignmentPossible( false ); setUserAssignmentPossible( false ); setUserUnassignmentPossible( false ); }
UIRepositoryObjectAclModel extends XulEventSourceAdapter implements java.io.Serializable { public void clear() { aclsToAdd.clear(); aclsToRemove.clear(); masterAvailableRoleList.clear(); masterAvailableUserList.clear(); availableRoleList.clear(); availableUserList.clear(); selectedAvailableRoles.clear(); selectedAvailableUsers.clear(); selectedAssignedRoles.clear(); selectedAssignedUsers.clear(); setRoleAssignmentPossible( false ); setRoleUnassignmentPossible( false ); setUserAssignmentPossible( false ); setUserUnassignmentPossible( false ); } }
UIRepositoryObjectAclModel extends XulEventSourceAdapter implements java.io.Serializable { public void clear() { aclsToAdd.clear(); aclsToRemove.clear(); masterAvailableRoleList.clear(); masterAvailableUserList.clear(); availableRoleList.clear(); availableUserList.clear(); selectedAvailableRoles.clear(); selectedAvailableUsers.clear(); selectedAssignedRoles.clear(); selectedAssignedUsers.clear(); setRoleAssignmentPossible( false ); setRoleUnassignmentPossible( false ); setUserAssignmentPossible( false ); setUserUnassignmentPossible( false ); } UIRepositoryObjectAclModel( UIRepositoryObjectAcls acls ); }
UIRepositoryObjectAclModel extends XulEventSourceAdapter implements java.io.Serializable { public void clear() { aclsToAdd.clear(); aclsToRemove.clear(); masterAvailableRoleList.clear(); masterAvailableUserList.clear(); availableRoleList.clear(); availableUserList.clear(); selectedAvailableRoles.clear(); selectedAvailableUsers.clear(); selectedAssignedRoles.clear(); selectedAssignedUsers.clear(); setRoleAssignmentPossible( false ); setRoleUnassignmentPossible( false ); setUserAssignmentPossible( false ); setUserUnassignmentPossible( false ); } UIRepositoryObjectAclModel( UIRepositoryObjectAcls acls ); List<UIRepositoryObjectAcl> getAclsToAdd(); void setAclsToRemove( List<UIRepositoryObjectAcl> aclsToRemove ); List<String> getSelectedAvailableRoles(); void setSelectedAvailableRoles( List<String> selectedAvailableRoles ); void setSelectedAvailableRole( String selectedAvailableRole ); List<String> getSelectedAvailableUsers(); void setSelectedAvailableUsers( List<String> selectedAvailableUsers ); void setSelectedAvailableUser( String selectedAvailableUser ); List<UIRepositoryObjectAcl> getSelectedAssignedRoles(); void setSelectedAssignedRoles( List<UIRepositoryObjectAcl> selectedAssignedRoles ); List<UIRepositoryObjectAcl> getSelectedAssignedUsers(); void setSelectedAssignedUsers( List<UIRepositoryObjectAcl> selectedAssignedUsers ); void setSelectedAssignedUser( UIRepositoryObjectAcl selectedAssignedUser ); List<String> getAvailableUserList(); boolean isUserAssignmentPossible(); void setUserAssignmentPossible( boolean userAssignmentPossible ); boolean isUserUnassignmentPossible(); void setUserUnassignmentPossible( boolean userUnassignmentPossible ); boolean isRoleAssignmentPossible(); void setRoleAssignmentPossible( boolean roleAssignmentPossible ); boolean isRoleUnassignmentPossible(); void setRoleUnassignmentPossible( boolean roleUnassignmentPossible ); void setAclsList( List<String> userList, List<String> roleList ); void setAvailableUserList( List<String> userList ); List<String> getAvailableRoleList(); void setAvailableRoleList( List<String> roleList ); void assignRoles( List<Object> rolesToAssign ); UIRepositoryObjectAcl assignRole( String roleToAssign ); UIRepositoryObjectAcl getAcl( String aclName ); void unassign( List<Object> toUnassign ); void assignUsers( List<Object> usersToAssign ); UIRepositoryObjectAcl assignUser( String userToAssign ); UIRepositoryObjectAcls getSelectedAcls(); void setSelectedAcls( UIRepositoryObjectAcls selectedAcls ); List<UIRepositoryObjectAcl> getSelectedUserList(); List<UIRepositoryObjectAcl> getSelectedRoleList(); String getAvailableUser( int index ); int getAvailableUserIndex( String user ); String getAvailableRole( int index ); int getAvailableRoleIndex( String role ); boolean findByRecipientName( String recipientName ); void clear(); void updateSelectedAcls(); UIRepositoryObjectAcl getSelectedUser( int index ); int getSelectedUserIndex( UIRepositoryObjectAcl user ); UIRepositoryObjectAcl getSelectedRole( int index ); int getSelectedRoleIndex( UIRepositoryObjectAcl role ); }
UIRepositoryObjectAclModel extends XulEventSourceAdapter implements java.io.Serializable { public void clear() { aclsToAdd.clear(); aclsToRemove.clear(); masterAvailableRoleList.clear(); masterAvailableUserList.clear(); availableRoleList.clear(); availableUserList.clear(); selectedAvailableRoles.clear(); selectedAvailableUsers.clear(); selectedAssignedRoles.clear(); selectedAssignedUsers.clear(); setRoleAssignmentPossible( false ); setRoleUnassignmentPossible( false ); setUserAssignmentPossible( false ); setUserUnassignmentPossible( false ); } UIRepositoryObjectAclModel( UIRepositoryObjectAcls acls ); List<UIRepositoryObjectAcl> getAclsToAdd(); void setAclsToRemove( List<UIRepositoryObjectAcl> aclsToRemove ); List<String> getSelectedAvailableRoles(); void setSelectedAvailableRoles( List<String> selectedAvailableRoles ); void setSelectedAvailableRole( String selectedAvailableRole ); List<String> getSelectedAvailableUsers(); void setSelectedAvailableUsers( List<String> selectedAvailableUsers ); void setSelectedAvailableUser( String selectedAvailableUser ); List<UIRepositoryObjectAcl> getSelectedAssignedRoles(); void setSelectedAssignedRoles( List<UIRepositoryObjectAcl> selectedAssignedRoles ); List<UIRepositoryObjectAcl> getSelectedAssignedUsers(); void setSelectedAssignedUsers( List<UIRepositoryObjectAcl> selectedAssignedUsers ); void setSelectedAssignedUser( UIRepositoryObjectAcl selectedAssignedUser ); List<String> getAvailableUserList(); boolean isUserAssignmentPossible(); void setUserAssignmentPossible( boolean userAssignmentPossible ); boolean isUserUnassignmentPossible(); void setUserUnassignmentPossible( boolean userUnassignmentPossible ); boolean isRoleAssignmentPossible(); void setRoleAssignmentPossible( boolean roleAssignmentPossible ); boolean isRoleUnassignmentPossible(); void setRoleUnassignmentPossible( boolean roleUnassignmentPossible ); void setAclsList( List<String> userList, List<String> roleList ); void setAvailableUserList( List<String> userList ); List<String> getAvailableRoleList(); void setAvailableRoleList( List<String> roleList ); void assignRoles( List<Object> rolesToAssign ); UIRepositoryObjectAcl assignRole( String roleToAssign ); UIRepositoryObjectAcl getAcl( String aclName ); void unassign( List<Object> toUnassign ); void assignUsers( List<Object> usersToAssign ); UIRepositoryObjectAcl assignUser( String userToAssign ); UIRepositoryObjectAcls getSelectedAcls(); void setSelectedAcls( UIRepositoryObjectAcls selectedAcls ); List<UIRepositoryObjectAcl> getSelectedUserList(); List<UIRepositoryObjectAcl> getSelectedRoleList(); String getAvailableUser( int index ); int getAvailableUserIndex( String user ); String getAvailableRole( int index ); int getAvailableRoleIndex( String role ); boolean findByRecipientName( String recipientName ); void clear(); void updateSelectedAcls(); UIRepositoryObjectAcl getSelectedUser( int index ); int getSelectedUserIndex( UIRepositoryObjectAcl user ); UIRepositoryObjectAcl getSelectedRole( int index ); int getSelectedRoleIndex( UIRepositoryObjectAcl role );  }