Package org.apache.syncope.core.logic
Class SchemaLogic
- java.lang.Object
-
- org.apache.syncope.core.logic.AbstractLogic<T>
-
- org.apache.syncope.core.logic.AbstractTransactionalLogic<SchemaTO>
-
- org.apache.syncope.core.logic.SchemaLogic
-
public class SchemaLogic extends AbstractTransactionalLogic<SchemaTO>
-
-
Field Summary
Fields Modifier and Type Field Description protected AnyTypeClassDAO
anyTypeClassDAO
protected SchemaDataBinder
binder
protected DerSchemaDAO
derSchemaDAO
protected PlainSchemaDAO
plainSchemaDAO
protected VirSchemaDAO
virSchemaDAO
-
Fields inherited from class org.apache.syncope.core.logic.AbstractLogic
LOG
-
-
Constructor Summary
Constructors Constructor Description SchemaLogic(PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, VirSchemaDAO virSchemaDAO, AnyTypeClassDAO anyTypeClassDAO, SchemaDataBinder binder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends SchemaTO>
Tcreate(SchemaType schemaType, T schemaTO)
void
delete(SchemaType schemaType, String schemaKey)
protected boolean
doesSchemaExist(SchemaType schemaType, String name)
<T extends SchemaTO>
Tread(SchemaType schemaType, String schemaKey)
protected SchemaTO
resolveReference(Method method, Object... args)
<T extends SchemaTO>
List<T>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 Detail
-
plainSchemaDAO
protected final PlainSchemaDAO plainSchemaDAO
-
derSchemaDAO
protected final DerSchemaDAO derSchemaDAO
-
virSchemaDAO
protected final VirSchemaDAO virSchemaDAO
-
anyTypeClassDAO
protected final AnyTypeClassDAO anyTypeClassDAO
-
binder
protected final SchemaDataBinder binder
-
-
Constructor Detail
-
SchemaLogic
public SchemaLogic(PlainSchemaDAO plainSchemaDAO, DerSchemaDAO derSchemaDAO, VirSchemaDAO virSchemaDAO, AnyTypeClassDAO anyTypeClassDAO, SchemaDataBinder binder)
-
-
Method Detail
-
doesSchemaExist
protected boolean doesSchemaExist(SchemaType schemaType, String name)
-
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)
-
resolveReference
protected SchemaTO resolveReference(Method method, Object... args) throws UnresolvedReferenceException
- Specified by:
resolveReference
in classAbstractLogic<SchemaTO>
- Throws:
UnresolvedReferenceException
-
-