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
FieldsModifier and TypeFieldDescriptionprotected final AnyTypeClassDAOprotected final SchemaDataBinderprotected final DerSchemaDAOprotected final ImplementationDAOprotected final Map<String, DropdownValueProvider> protected final PlainSchemaDAOFields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG -
Constructor Summary
ConstructorsConstructorDescriptionSchemaLogic(PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, AnyTypeClassDAO anyTypeClassDAO, ImplementationDAO implementationDAO, SchemaDataBinder binder) -
Method Summary
Modifier and TypeMethodDescription<T extends SchemaTO>
Tcreate(SchemaType schemaType, T schemaTO) voiddelete(SchemaType schemaType, String schemaKey) findById(SchemaType schemaType, String name) getDropdownValues(String key, AttributableTO attributableTO) <T extends SchemaTO>
Tread(SchemaType schemaType, String schemaKey) protected SchemaTOresolveReference(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
-
anyTypeClassDAO
-
implementationDAO
-
binder
-
perContextDropdownValueProviders
-
-
Constructor Details
-
SchemaLogic
public SchemaLogic(PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, 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
@PreAuthorize("isAuthenticated()") public Attr getDropdownValues(String key, AttributableTO attributableTO) -
resolveReference
protected SchemaTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException - Specified by:
resolveReferencein classAbstractLogic<SchemaTO>- Throws:
UnresolvedReferenceException
-