use of org.pentaho.di.repository.pur.model.ObjectAce in project pentaho-kettle by pentaho.
the class UIRepositoryObjectAclModelTest method createUserAce.
private ObjectAce createUserAce(String recipientName) {
ObjectRecipient objectRecipient = new RepositoryObjectRecipient(recipientName, ObjectRecipient.Type.USER);
ObjectAce objectAce = new RepositoryObjectAce(objectRecipient, EnumSet.of(RepositoryFilePermission.READ, RepositoryFilePermission.WRITE));
return objectAce;
}
use of org.pentaho.di.repository.pur.model.ObjectAce in project pentaho-kettle by pentaho.
the class UIRepositoryObjectAclTest method createObjectAce.
private ObjectAce createObjectAce() {
ObjectRecipient objectRecipient = new RepositoryObjectRecipient(RECIPIENT1, ObjectRecipient.Type.USER);
ObjectAce objectAce = new RepositoryObjectAce(objectRecipient, EnumSet.of(RepositoryFilePermission.ALL));
return objectAce;
}
use of org.pentaho.di.repository.pur.model.ObjectAce in project pentaho-kettle by pentaho.
the class UIRepositoryObjectAclsTest method createObjectAce.
private ObjectAce createObjectAce(String recipientName) {
ObjectRecipient objectRecipient = new RepositoryObjectRecipient(recipientName, ObjectRecipient.Type.USER);
ObjectAce objectAce = new RepositoryObjectAce(objectRecipient, EnumSet.of(RepositoryFilePermission.READ, RepositoryFilePermission.WRITE));
return objectAce;
}
use of org.pentaho.di.repository.pur.model.ObjectAce in project pentaho-kettle by pentaho.
the class UIRepositoryObjectAcls method removeAcl.
public void removeAcl(String recipientName) {
ObjectAce aceToRemove = null;
for (ObjectAce ace : obj.getAces()) {
if (ace.getRecipient().getName().equals(recipientName)) {
aceToRemove = ace;
break;
}
}
obj.getAces().remove(aceToRemove);
}
Aggregations