use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class CatalogService method removeFile.
public File removeFile(Long fileId) {
File file = new File();
file.setId(fileId);
return dao.remove(new StorableKey(FILE_NAMESPACE, file.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class SecurityCatalogService method removeUserRole.
public UserRole removeUserRole(Long userId, Long roleId) {
UserRole userRole = new UserRole();
userRole.setUserId(userId);
userRole.setRoleId(roleId);
return dao.remove(new StorableKey(UserRole.NAMESPACE, userRole.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class SecurityCatalogService method removeAcl.
public AclEntry removeAcl(Long id) {
AclEntry aclEntry = new AclEntry();
aclEntry.setId(id);
return dao.remove(new StorableKey(AclEntry.NAMESPACE, aclEntry.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class SecurityCatalogService method getAcl.
public AclEntry getAcl(Long aclEntryId) {
AclEntry aclEntry = new AclEntry();
aclEntry.setId(aclEntryId);
return this.dao.get(new StorableKey(AclEntry.NAMESPACE, aclEntry.getPrimaryKey()));
}
use of com.hortonworks.registries.storage.StorableKey in project streamline by hortonworks.
the class EnvironmentService method removeComponentProcess.
public void removeComponentProcess(Long componentProcessId) {
ComponentProcess componentProcess = new ComponentProcess();
componentProcess.setId(componentProcessId);
this.dao.remove(new StorableKey(NAMESPACE_COMPONENT_PROCESS, componentProcess.getPrimaryKey()));
}
Aggregations