Class ACLServiceBase

  • All Implemented Interfaces:
    ACLService
    Direct Known Subclasses:
    ACLServiceImpl

    public abstract class ACLServiceBase
    extends Object
    implements ACLService

    Spring Service base class for com.soffid.iam.service.ACLService, provides access to all services and entities referenced by this service.

    see com.soffid.iam.service.ACLService
    • Constructor Detail

      • ACLServiceBase

        public ACLServiceBase()
    • Method Detail

      • setAccountEntityDao

        public void setAccountEntityDao​(AccountEntityDao accountEntityDao)
        Sets reference to accountEntityDao.
      • getAccountEntityDao

        public AccountEntityDao getAccountEntityDao()
        Gets reference to accountEntityDao.
      • setApplicationService

        public void setApplicationService​(com.soffid.iam.service.ApplicationService aplicacioService)
        Sets reference to aplicacioService.
      • getApplicationService

        public com.soffid.iam.service.ApplicationService getApplicationService()
        Gets reference to aplicacioService.
      • setDispatcherService

        public void setDispatcherService​(com.soffid.iam.service.DispatcherService dispatcherService)
        Sets reference to dispatcherService.
      • getDispatcherService

        public com.soffid.iam.service.DispatcherService getDispatcherService()
        Gets reference to dispatcherService.
      • setGroupEntityDao

        public void setGroupEntityDao​(GroupEntityDao grupEntityDao)
        Sets reference to grupEntityDao.
      • getGroupEntityDao

        public GroupEntityDao getGroupEntityDao()
        Gets reference to grupEntityDao.
      • setRoleEntityDao

        public void setRoleEntityDao​(RoleEntityDao rolEntityDao)
        Sets reference to rolEntityDao.
      • getRoleEntityDao

        public RoleEntityDao getRoleEntityDao()
        Gets reference to rolEntityDao.
      • setUserEntityDao

        public void setUserEntityDao​(UserEntityDao usuariEntityDao)
        Sets reference to usuariEntityDao.
      • getUserEntityDao

        public UserEntityDao getUserEntityDao()
        Gets reference to usuariEntityDao.
      • isAccountIncluded

        @Transactional(rollbackFor=java.lang.Exception.class)
        public boolean isAccountIncluded​(long userId,
                                         com.soffid.iam.api.AccessControlList acl)
                                  throws es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: ACLService
        Operation isAccountIncluded
        Specified by:
        isAccountIncluded in interface ACLService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsAccountIncluded

        protected abstract boolean handleIsAccountIncluded​(long userId,
                                                           com.soffid.iam.api.AccessControlList acl)
                                                    throws Exception
        Throws:
        Exception
      • isCurrentUserIncluded

        @Transactional(rollbackFor=java.lang.Exception.class)
        public boolean isCurrentUserIncluded​(com.soffid.iam.api.AccessControlList acl)
                                      throws es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: ACLService
        Operation isCurrentUserIncluded
        Specified by:
        isCurrentUserIncluded in interface ACLService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsCurrentUserIncluded

        protected abstract boolean handleIsCurrentUserIncluded​(com.soffid.iam.api.AccessControlList acl)
                                                        throws Exception
        Throws:
        Exception
      • isUserIncluded

        @Transactional(rollbackFor=java.lang.Exception.class)
        public boolean isUserIncluded​(long userId,
                                      com.soffid.iam.api.AccessControlList acl)
                               throws es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: ACLService
        Operation isUserIncluded
        Specified by:
        isUserIncluded in interface ACLService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleIsUserIncluded

        protected abstract boolean handleIsUserIncluded​(long userId,
                                                        com.soffid.iam.api.AccessControlList acl)
                                                 throws Exception
        Throws:
        Exception
      • expandACL

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AccessControlList expandACL​(com.soffid.iam.api.AccessControlList acl)
                                                       throws es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: ACLService
        Operation expandACL
        Specified by:
        expandACL in interface ACLService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleExpandACL

        protected abstract com.soffid.iam.api.AccessControlList handleExpandACL​(com.soffid.iam.api.AccessControlList acl)
                                                                         throws Exception
        Throws:
        Exception
      • expandUser

        @Transactional(rollbackFor=java.lang.Exception.class)
        public com.soffid.iam.api.AccessControlList expandUser​(long userId)
                                                        throws es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: ACLService
        Operation expandUser
        Specified by:
        expandUser in interface ACLService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleExpandUser

        protected abstract com.soffid.iam.api.AccessControlList handleExpandUser​(long userId)
                                                                          throws Exception
        Throws:
        Exception
      • expandACLAccounts

        @Transactional(rollbackFor=java.lang.Exception.class)
        public Collection<String> expandACLAccounts​(com.soffid.iam.api.AccessControlList acl)
                                             throws es.caib.seycon.ng.exception.InternalErrorException
        Description copied from interface: ACLService
        Operation expandACLAccounts
        Specified by:
        expandACLAccounts in interface ACLService
        Returns:
        Throws:
        es.caib.seycon.ng.exception.InternalErrorException
      • handleExpandACLAccounts

        protected abstract Collection<String> handleExpandACLAccounts​(com.soffid.iam.api.AccessControlList acl)
                                                               throws Exception
        Throws:
        Exception
      • getPrincipal

        protected Principal getPrincipal()
        Gets the current principal if one has been set, otherwise returns null.
        Returns:
        the current principal