Search in sources :

Example 16 with StorableKey

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()));
}
Also used : StorableKey(com.hortonworks.registries.storage.StorableKey) File(com.hortonworks.streamline.streams.catalog.File)

Example 17 with StorableKey

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()));
}
Also used : UserRole(com.hortonworks.streamline.streams.security.catalog.UserRole) StorableKey(com.hortonworks.registries.storage.StorableKey)

Example 18 with StorableKey

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()));
}
Also used : StorableKey(com.hortonworks.registries.storage.StorableKey) AclEntry(com.hortonworks.streamline.streams.security.catalog.AclEntry)

Example 19 with StorableKey

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()));
}
Also used : StorableKey(com.hortonworks.registries.storage.StorableKey) AclEntry(com.hortonworks.streamline.streams.security.catalog.AclEntry)

Example 20 with StorableKey

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()));
}
Also used : StorableKey(com.hortonworks.registries.storage.StorableKey) ComponentProcess(com.hortonworks.streamline.streams.cluster.catalog.ComponentProcess)

Aggregations

StorableKey (com.hortonworks.registries.storage.StorableKey)72 Schema (com.hortonworks.registries.common.Schema)6 OrderByField (com.hortonworks.registries.storage.OrderByField)6 PrimaryKey (com.hortonworks.registries.storage.PrimaryKey)6 HashMap (java.util.HashMap)6 Test (org.junit.Test)5 QueryParam (com.hortonworks.registries.common.QueryParam)4 StorageManager (com.hortonworks.registries.storage.StorageManager)4 SchemaNotFoundException (com.hortonworks.registries.schemaregistry.errors.SchemaNotFoundException)3 Storable (com.hortonworks.registries.storage.Storable)3 StorageException (com.hortonworks.registries.storage.exception.StorageException)3 Role (com.hortonworks.streamline.streams.security.catalog.Role)3 UserRole (com.hortonworks.streamline.streams.security.catalog.UserRole)3 CacheBuilder (com.google.common.cache.CacheBuilder)2 SchemaVersionInfoCache (com.hortonworks.registries.schemaregistry.cache.SchemaVersionInfoCache)2 CacheBackedStorageManager (com.hortonworks.registries.storage.CacheBackedStorageManager)2 StorageWriter (com.hortonworks.registries.storage.cache.writer.StorageWriter)2 AlreadyExistsException (com.hortonworks.registries.storage.exception.AlreadyExistsException)2 IllegalQueryParameterException (com.hortonworks.registries.storage.exception.IllegalQueryParameterException)2 MySqlSelectQuery (com.hortonworks.registries.storage.impl.jdbc.provider.mysql.query.MySqlSelectQuery)2