Package org.apache.syncope.core.logic
Class SchemaLogic
java.lang.Object
org.apache.syncope.core.logic.AbstractLogic<SchemaTO>
org.apache.syncope.core.logic.AbstractTransactionalLogic<SchemaTO>
org.apache.syncope.core.logic.SchemaLogic
-
Field Summary
Modifier and TypeFieldDescriptionprotected final AnyTypeClassDAO
protected final SchemaDataBinder
protected final DerSchemaDAO
protected final ImplementationDAO
protected final Map
<String, DropdownValueProvider> protected final PlainSchemaDAO
protected final VirSchemaDAO
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
Constructor Summary
ConstructorDescriptionSchemaLogic
(PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, VirSchemaDAO virSchemaDAO, AnyTypeClassDAO anyTypeClassDAO, ImplementationDAO implementationDAO, SchemaDataBinder binder) -
Method Summary
Modifier and TypeMethodDescription<T extends SchemaTO>
Tcreate
(SchemaType schemaType, T schemaTO) void
delete
(SchemaType schemaType, String schemaKey) findById
(SchemaType schemaType, String name) getDropdownValues
(String key, AnyTO anyTO) <T extends SchemaTO>
Tread
(SchemaType schemaType, String schemaKey) protected SchemaTO
resolveReference
(Method method, Object... args) search
(SchemaType schemaType, List<String> anyTypeClasses, String keyword) <T extends SchemaTO>
voidupdate
(SchemaType schemaType, T schemaTO) Methods inherited from class org.apache.syncope.core.logic.AbstractLogic
resolveBeanReference
-
Field Details
-
plainSchemaDAO
-
derSchemaDAO
-
virSchemaDAO
-
anyTypeClassDAO
-
implementationDAO
-
binder
-
perContextDropdownValueProviders
-
-
Constructor Details
-
SchemaLogic
public SchemaLogic(PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, VirSchemaDAO virSchemaDAO, AnyTypeClassDAO anyTypeClassDAO, ImplementationDAO implementationDAO, SchemaDataBinder binder)
-
-
Method Details
-
findById
-
create
@PreAuthorize("hasRole(\'SCHEMA_CREATE\')") public <T extends SchemaTO> T create(SchemaType schemaType, T schemaTO) -
delete
@PreAuthorize("hasRole(\'SCHEMA_DELETE\')") public void delete(SchemaType schemaType, String schemaKey) -
search
@PreAuthorize("isAuthenticated()") @Transactional(readOnly=true) public <T extends SchemaTO> List<T> search(SchemaType schemaType, List<String> anyTypeClasses, String keyword) -
read
@PreAuthorize("isAuthenticated()") public <T extends SchemaTO> T read(SchemaType schemaType, String schemaKey) -
update
@PreAuthorize("hasRole(\'SCHEMA_UPDATE\')") public <T extends SchemaTO> void update(SchemaType schemaType, T schemaTO) -
getDropdownValues
-
resolveReference
protected SchemaTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReference
in classAbstractLogic<SchemaTO>
- Throws:
UnresolvedReferenceException
-