@Security public class BrokeringServiceSecurity extends BaseServiceSecurity implements BrokeringService
BrokeringService| Constructor and Description |
|---|
BrokeringServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
addBroker(UserLocatorVO userLocator,
UserLocatorVO brokerLocator,
boolean mainBroker)
Adds a broker for the given user, optionally setting the broker as main
|
AddBrokerData |
getAddBrokerData(UserLocatorVO locator)
Returns data for adding a broker to the given user
|
java.util.List<BrokeringLogVO> |
getBrokeringLogs(UserLocatorVO locator)
Return the brokering logs associated to the given user.
|
BrokeringData |
getData(UserLocatorVO userLocator)
Returns data for an user brokerings
|
void |
removeBroker(UserLocatorVO userLocator,
UserLocatorVO brokerLocator)
Removes the given broker from the user brokerings
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
void |
setMainBroker(UserLocatorVO userLocator,
UserLocatorVO brokerLocator)
Assigns the given brokering as main
|
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, message, message, persist, processBatch, refresh, remove, subQuery, updatepublic java.lang.Long addBroker(UserLocatorVO userLocator, UserLocatorVO brokerLocator, boolean mainBroker) throws FrameworkException, IllegalActionException
BrokeringServiceaddBroker in interface BrokeringServiceIllegalActionException - When the given broker is either inactive or is not a brokerFrameworkExceptionpublic AddBrokerData getAddBrokerData(UserLocatorVO locator) throws FrameworkException
BrokeringServicegetAddBrokerData in interface BrokeringServiceFrameworkExceptionpublic java.util.List<BrokeringLogVO> getBrokeringLogs(UserLocatorVO locator)
BrokeringServicegetBrokeringLogs in interface BrokeringServicepublic BrokeringData getData(UserLocatorVO userLocator) throws FrameworkException
BrokeringServicegetData in interface BrokeringServiceFrameworkExceptionpublic void removeBroker(UserLocatorVO userLocator, UserLocatorVO brokerLocator) throws IllegalActionException
BrokeringServiceremoveBroker in interface BrokeringServiceIllegalActionException - When the given broker is not a broker of the given userpublic void setMainBroker(UserLocatorVO userLocator, UserLocatorVO brokerLocator) throws FrameworkException, IllegalActionException
BrokeringServicesetMainBroker in interface BrokeringServiceIllegalActionException - When the given broker is not a broker of the given userFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity