tle.framework.component.impl.aamanager.service
Class ServiceImpl

java.lang.Object
  extended bytle.framework.component.impl.aamanager.service.ServiceImpl
All Implemented Interfaces:
HasGrant, Service

public class ServiceImpl
extends java.lang.Object
implements Service, HasGrant

ServiceÀÇ ±¸Çöü. ServiceManagerImpl¿¡¼­ »ç¿ëÇÑ´Ù.

Since:
2.0
Author:
ÃÖ¹ü±Õ

Constructor Summary
(package private) ServiceImpl(java.lang.String commandID, java.lang.String name, java.lang.String description, boolean needAuth, boolean allRolesUsable, java.lang.String roleIDs)
           
 
Method Summary
 java.lang.String getCommandID()
          ÀÌ ¼­ºñ½º¿Í °ü·ÃµÈ ¸í·É¾îÀÇ ID¸¦ ±¸ÇÑ´Ù.
 java.lang.String getDescription()
          ÀÌ ¼­ºñ½º¿¡ ´ëÇÑ ¼³¸íÀ» ±¸ÇÑ´Ù.
 java.lang.String getName()
          ÀÌ ¼­ºñ½ºÀÇ À̸§À» ±¸ÇÑ´Ù.
 boolean hasGrant(Role role)
          roleID¿¡ ÇØ´çÇÏ´Â ¿ªÇÒÀÌ ÀÌ ¼­ºñ½º¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Â °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.
 boolean isAllRolesUsable()
          ¸ðµç ¿ªÇÒÀÌ »ç¿ë °¡´ÉÇÑ ¼­ºñ½ºÀÎÁö °Ë»çÇÑ´Ù.
 boolean isNeedAuthentication()
          ÀÎÁõÀ» ÇÊ¿ä·Î ÇÏ´Â ¼­ºñ½ºÀÎÁö °Ë»çÇÑ´Ù.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceImpl

ServiceImpl(java.lang.String commandID,
            java.lang.String name,
            java.lang.String description,
            boolean needAuth,
            boolean allRolesUsable,
            java.lang.String roleIDs)
Method Detail

getCommandID

public java.lang.String getCommandID()
Description copied from interface: Service
ÀÌ ¼­ºñ½º¿Í °ü·ÃµÈ ¸í·É¾îÀÇ ID¸¦ ±¸ÇÑ´Ù.

Specified by:
getCommandID in interface Service
Returns:

getName

public java.lang.String getName()
Description copied from interface: Service
ÀÌ ¼­ºñ½ºÀÇ À̸§À» ±¸ÇÑ´Ù.

Specified by:
getName in interface Service
Returns:

getDescription

public java.lang.String getDescription()
Description copied from interface: Service
ÀÌ ¼­ºñ½º¿¡ ´ëÇÑ ¼³¸íÀ» ±¸ÇÑ´Ù.

Specified by:
getDescription in interface Service
Returns:

isNeedAuthentication

public boolean isNeedAuthentication()
Description copied from interface: Service
ÀÎÁõÀ» ÇÊ¿ä·Î ÇÏ´Â ¼­ºñ½ºÀÎÁö °Ë»çÇÑ´Ù.

Specified by:
isNeedAuthentication in interface Service
Returns:

isAllRolesUsable

public boolean isAllRolesUsable()
Description copied from interface: Service
¸ðµç ¿ªÇÒÀÌ »ç¿ë °¡´ÉÇÑ ¼­ºñ½ºÀÎÁö °Ë»çÇÑ´Ù.

Specified by:
isAllRolesUsable in interface Service
Returns:

hasGrant

public boolean hasGrant(Role role)
roleID¿¡ ÇØ´çÇÏ´Â ¿ªÇÒÀÌ ÀÌ ¼­ºñ½º¸¦ »ç¿ëÇÒ ¼ö ÀÖ´Â °æ¿ì true¸¦ ¸®ÅÏÇÑ´Ù.

Specified by:
hasGrant in interface HasGrant
Parameters:
role - ¿ªÇÒ
Returns:
¿ªÇÒÀÌ ¼­ºñ½º¸¦ »ç¿ë°¡´ÉÇÑ °æ¿ì true