@Security public class NetworkServiceSecurity extends CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void> implements NetworkService
entityClass| Constructor and Description |
|---|
NetworkServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkCreateNew(java.lang.Void params)
Checks whether creating new entities with the given context parameters is allowed, throwing
PermissionDeniedException if not |
java.lang.Long |
createWithData(NetworkDTO network,
NetworkInitialDataDTO data)
Creates a new network with initial data
|
protected void |
customizeData(NetworkData data)
Can be overridden in order to process the returned data object for the given entity
|
protected boolean |
doHasManageAccess(Network entity)
Should be implemented in order to return whether the caller is allowed to manage the given entity, for the given
operation
|
boolean |
doHasViewAccess(Network entity)
Should be implemented in order to return whether the caller is allowed to view the given entity.
|
NetworkWithInitialDataData |
getDataForNewWithData()
Returns data for creating a new network with initial data
|
protected NetworkServiceLocal |
getImplementation()
Should be implemented in order to return the actual implementation of the service
|
NetworkInitialDataDTO |
getInitialData(BasicNetworkInitialDataDTO basicData)
Returns an initial data pre-populated with fields according to the given initial selections
|
NetworkSearchData |
getSearchData()
Returns data for searching networks
|
boolean |
isAccessible(SessionData sessionData,
Network entity)
Must be implemented in order to determine whether the given entity is accessible for the given session data.
|
protected void |
onBeforeSave(NetworkDTO dto,
Network entity) |
java.lang.String |
resolveNetworkUrl(NetworkVO networkVO)
Returns the URL a global admin can use to access the given network
|
Page<NetworkVO> |
search(NetworkQuery query)
Searches for networks according to the given criteria
|
canPerformOperation, canViewHistoryLog, checkManageAccess, checkOperation, checkViewAccess, find, getConfirmationPasswordInputForRemove, getData, getDataForNew, getEntityClass, hasManageAccess, hasViewAccess, load, remove, removeAll, removeAllWithConfirmationPassword, removeWithConfirmationPassword, resolveEntityCheck, save, saveWithConfirmationPasswordcheckGuest, 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, updateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetData, getDataForNew, load, remove, removeAll, savepublic java.lang.Long createWithData(NetworkDTO network, NetworkInitialDataDTO data) throws FrameworkException
NetworkServicecreateWithData in interface NetworkServiceFrameworkExceptionpublic boolean doHasViewAccess(Network entity)
CRUDServiceSecuritydoHasViewAccess in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>public NetworkWithInitialDataData getDataForNewWithData() throws FrameworkException
NetworkServicegetDataForNewWithData in interface NetworkServiceFrameworkExceptionpublic NetworkInitialDataDTO getInitialData(BasicNetworkInitialDataDTO basicData) throws FrameworkException
NetworkServicegetInitialData in interface NetworkServiceFrameworkExceptionpublic NetworkSearchData getSearchData()
NetworkServicegetSearchData in interface NetworkServicepublic boolean isAccessible(SessionData sessionData, Network entity)
CRUDServiceSecurityCRUDServiceSecurity.hasViewAccess(BaseEntity). If the only condition for an entity is
CRUDServiceSecurity.hasViewAccess(BaseEntity), this method
should return false.isAccessible in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>public java.lang.String resolveNetworkUrl(NetworkVO networkVO) throws FrameworkException
NetworkServiceresolveNetworkUrl in interface NetworkServiceFrameworkExceptionpublic Page<NetworkVO> search(NetworkQuery query)
NetworkServicesearch in interface NetworkServiceprotected void checkCreateNew(java.lang.Void params)
CRUDServiceSecurityPermissionDeniedException if notcheckCreateNew in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>protected void customizeData(NetworkData data)
CRUDServiceSecuritycustomizeData in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>protected boolean doHasManageAccess(Network entity)
CRUDServiceSecuritydoHasManageAccess in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>protected NetworkServiceLocal getImplementation()
CRUDServiceSecuritygetImplementation in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>protected void onBeforeSave(NetworkDTO dto, Network entity)
onBeforeSave in class CRUDServiceSecurity<NetworkDTO,Network,NetworkData,java.lang.Void>